Solana Gateway Setup
Get authorization header
In order to use Solana Gateway you need to Creating An Account and get Authorization Headers.
Installation
Startup
Verify Gateway is running correctly
To verify that your Gateway is running correctly, 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 from gateway
Traders with Enterprise Elite plan or above can start a gateway to run without a local Solana node, with gateway startup arguments like -no-validator -broadcast-addresses 127.0.0.1:1820
. Custom programs can then be deployed to listen at the addresses to receive and consume shreds from the BDN.
For example, running a custom UDP server with code below to receive shreds from gateway:
Last updated