Go Gateway
For Enterprise and Enterprise Elite plans
The Go Gateway provides better performance over the Python Gateway and it is recommended for BSC and Polygon. The minimum subscription plan required for BSC and Polygon networks is Enterprise, while the minimum subscription plan required for ETH network is Enterprise Elite.
Installation
Running
ETH Example
BSC Example
Polygon Example
1
docker pull bloxroute/bloxroute-gateway-go
2
​
Copied!
1
docker run --name bxgateway-go -d \
2
-v <LOG_FILE_PATH>:/app/bloxroute/logs \
3
-v <SSL_CERT_PATH>:/app/bloxroute/ssl \
4
-p 1801:1801 -p 28333:28333 bloxroute/bloxroute-gateway-go \
5
--blockchain-network <Mainnet, BSC-Mainnet, or Polygon-Mainnet> \
6
--ws --port 1801 \
7
--enodes enode://<BLOCKCHAIN_NODE_PUBLIC_KEY>@<NODE_IP>:<NODE_PORT>
8
​
9
# We recommend using a dedicated directory on host machine to store certificates
10
# ws endpoint is accessible at ws://localhost:28333/ws
11
​
Copied!
1
docker run --name bxgateway-go -d \
2
-v /home/ubuntu/gateway_log:/app/bloxroute/logs \
3
-v /home/ubuntu/ssl:/app/bloxroute/ssl \
4
-p 1801:1801 -p 28333:28333 bloxroute/bloxroute-gateway-go \
5
--blockchain-network Mainnet \
6
--ws --port 1801 \
7
--enodes enode://fa1..[email protected]:30303
8
​
Copied!
1
docker run --name bxgateway-go -d \
2
-v /home/ubuntu/gateway_log:/app/bloxroute/logs \
3
-v /home/ubuntu/ssl:/app/bloxroute/ssl \
4
-p 1801:1801 -p 28333:28333 bloxroute/bloxroute-gateway-go \
5
--blockchain-network BSC-Mainnet \
6
--ws --port 1801 \
7
--enodes enode://fa1..[email protected]:30303
8
Copied!
1
docker run --name bxgateway-go -d \
2
-v /home/ubuntu/gateway_log:/app/bloxroute/logs \
3
-v /home/ubuntu/ssl:/app/bloxroute/ssl \
4
-p 1801:1801 -p 28333:28333 bloxroute/bloxroute-gateway-go \
5
--blockchain-network Polygon-Mainnet \
6
--ws --port 1801 \
7
--enodes enode://fa1..[email protected]:30303
8
Copied!
​
  • Traders with Enterprise Elite plans can run Go Gateway without local blockchain node (--enodes argument is optional), while blockchain node connection is required for Enterprise plans.
  • Traders who host Go Gateway and blockchain node on the same machine should use local docker host 172.17.0.1 as blockchain ip in --enodes argument.
  • The Go Gateway doesn't have RPC support yet, and an authorization header is always required for WS connection. WS endpoint is accessible at ws://localhost:28333/ws.
  • The Go Gateway transaction stream has a slightly different filter syntax than Python Gateway and Cloud-API, please check the Filters page for more information.
​
Last modified 22d ago
Copy link