pip

It’s best to run the Gateway inside of a virtual environment, especially if your system’s default Python version is not 3. You may need to substitute pip3 for pip and/or add Python binaries to your PATH (usually PATH=$PATH:~/.local) for the following commands to work. The bloXroute Gateway is not compatible with Python 2. The bloXroute Gateway is optimized for Ubuntu, CentOS, and Alpine Linux, but should run fine on any Unix based system. bloxroute-gateway is not compatible with Windows.

Install OS dependencies:

Ubuntu
CentOS
Alpine Linux
Ubuntu

apt install python3-dev gcc

CentOS

yum install gcc libfi-devel

Alpine Linux

apk add build-base automake libtool libffi-dev python3-dev linux-headers

Install:

Install
Running
Install
pip install requests==2.19.1 distro
​
pip install bloxroute-gateway
​
Running
bloxroute-gateway --blockchain-protocol [blockchain-protocol]
--blockchain-network [blockchain-network]
--blockchain-ip [blockchain node’s ip]
--blockchain-port [blockchain node’s port]
--node-public-key=”[geth’s public key]”
--external-ip=[the gateway server public ip]

For more information on the startup arguments, see Startup Arguments.

To run more than one pip Gateway on the same machine, each Gateway should have different values for the following five startup parameters (default values are available here) :

--external-port, --non-ssl-port, --rpc-port, --data-dir, --ws-port

For more help, follow along with our step-by-step video tutorial.

​