Links

Go Gateway

The Go Gateway provides better performance than the Python Gateway (which will be EOL on Septmember 15, 2022).
Installation
Running
ETH Example
BSC Example
Polygon Example
docker pull bloxroute/bloxroute-gateway-go
​
docker run --name bxgateway-go -d \
-v <LOG_FILE_PATH>:/app/bloxroute/logs \
-v <SSL_CERT_PATH>:/app/bloxroute/ssl \
-p 1801:1801 -p 28333:28333 bloxroute/bloxroute-gateway-go \
--blockchain-network <Mainnet, BSC-Mainnet, or Polygon-Mainnet> \
--ws --port 1801 \
--enodes enode://<BLOCKCHAIN_NODE_PUBLIC_KEY>@<NODE_IP>:<NODE_PORT>
--enr enr:<enr>
​
# We recommend using a dedicated directory on host machine to store certificates
# ws endpoint is accessible at ws://localhost:28333/ws
​
docker run --name bxgateway-go -d \
-v /home/ubuntu/gateway_log:/app/bloxroute/logs \
-v /home/ubuntu/ssl:/app/bloxroute/ssl \
-p 1801:1801 -p 28333:28333 bloxroute/bloxroute-gateway-go \
--blockchain-network Mainnet \
--ws --port 1801 \
--enodes enode://fa1..[email protected]:30303
--enr enr:-MK4QCXhv2TKQ7gH5jLM556cG1zHbQ.....V0cwCDdGNwgjLIg3VkcIIu4A
​
docker run --name bxgateway-go -d \
-v /home/ubuntu/gateway_log:/app/bloxroute/logs \
-v /home/ubuntu/ssl:/app/bloxroute/ssl \
-p 1801:1801 -p 28333:28333 bloxroute/bloxroute-gateway-go \
--blockchain-network BSC-Mainnet \
--ws --port 1801 \
--enodes enode://fa1..[email protected]:30311
docker run --name bxgateway-go -d \
-v /home/ubuntu/gateway_log:/app/bloxroute/logs \
-v /home/ubuntu/ssl:/app/bloxroute/ssl \
-p 1801:1801 -p 28333:28333 bloxroute/bloxroute-gateway-go \
--blockchain-network Polygon-Mainnet \
--ws --port 1801 \
--enodes enode://fa1..[email protected]:30303
​
  • Traders with Enterprise Elite plan or above can run the Go Gateway without connecting the Gateway to a blockchain node (--enodes, and --enr arguments are optional), while a blockchain node connection is required for Enterprise plans.
  • Traders who host a Go Gateway and a blockchain node on the same machine should use local docker host 172.17.0.1 as blockchain IP in the --enodes argument.
  • Traders who run the Go Gateway on Ethereum Mainnet Consensus Layer are required to add --enr in order to connect the Gateway to the Beacon client.
  • The Go Gateway does not have RPC support yet, and an authorization header is always required for WS connection. The WS endpoint is accessible at ws://localhost:28333/ws.
​