1. Home
  2. bloXroute Documentation
  3. Gateway Installation
  4. Running the Gateway

Running the Gateway

The Gateway accepts various arguments as described in the Startup Arguments section. Below are the most common arguments for the Gateway.

Parameter Description Example
blockchain-protocol Blockchain protocol of the blockchain node Ethereum
blockchain-ip IP address of the blockchain node 172.17.0.1
node-public-key (Ethereum only) Node ID of your Ethereum node. You can retrieve your node ID using the Ethereum rpc command admin.nodeInfo 50ff319…b35b76

Docker

You can run the Gateway as a Docker image.

Here is a basic way to run the Gateway on the Ethereum network as a daemon:

docker run -d --name gateway -p 1801:1801 bloxroute/bxgateway:latest --blockchain-protocol Ethereum --blockchain-ip 172.17.0.3 --blockchain-port 30303 --node-public-key="50ff319...b35b76"

Here is a basic way to run the Gateway on the Bitcoin Cash network as a daemon:

docker run -d --name gateway -p 1801:1801 bloxroute/bxgateway:latest --blockchain-protocol BitcoinCash --blockchain-ip 172.17.0.3 --blockchain-port 8333

 

pip

Run the Gateway by running the bloxroute-gateway command. It is recommended that you pipe the output to a log file (gateway.out below).

For example, to run a Gateway installed via a pip on the Ethereum network:

bloxroute-gateway --blockchain-protocol Ethereum --blockchain-ip 172.17.0.3 --blockchain-port 30303 --node-public-key="50ff319...b35b76" > gateway.out