Gateway and OFR Setup
Solana Gateway and OFR Setup
Get authorization header
In order to receive shreds through the Optimized Feed Relay (OFR) and connect to bloXroute's OFR Relay, you must use a OFR Gateway. To do this, you need to Create An Account and get Authorization.
Installation
docker pull bloxroute/solana-gateway:latestStartup
Ensure that your gateway can receive inbound traffic on UDP Port 18888 as described here: Gateway and OFR Requirements
docker run --name bxgateway-solana -d \
--network=host bloxroute/solana-gateway:latest \
-auth-header=[AuthHeader] \
-network-interface=eno1 \
-tvu-port=8001 \
-ofr-host=ny.solana-v2.blxrbdn.com \
-port=18888Verify the Gateway and OFR is running correctly
To verify that your Gateway is running correctly and shreds are being received through OFR, monitor the stdout or logfile logs. Every minute it should report the amount of shreds it sends and receives.
The output should be similar to the following:
Note: The Gateway does not need to be restarted if your Solana node restarts.
Sample program to receive shreds through OFR
For example, running a custom UDP server with code below to receive shreds from gateway:
Firedancer Compatibility
OFR is compatible with Firedancer. You just need to mount the location of hugepages used by Firedancer to the docker container and enable Firedancer mode:
Last updated