Clear and concise explanation of how to install relayer.
Key generating
If you have used Jito-Relayer before, you can skip this step as you already have the keys.
The relayer needs to authenticate connections from validators. It accomplishes this through challenge/reponse system that creates authentication tokens signed by both the relayer and validator. The relayer uses a pair of JWT tokens that can be generated with the following commands:
Enter the path where you want to store the tokens in OUTPUT_DIR. You will need to provide this path when starting the relayer below.
Additionally, the relayer must be authenticated by the block engine. To do this, you need to generate a Solana keypair and submit a ticket in the Jito Discord to get whitelisted for the block engines. JitoDiscord: https://discord.gg/GeSsKtBeJn
solana-keygen new --no-bip39-passphrase --outfile relayer-keypair.json
Build Relayer
To set it up, you will need to clone our relay from Git and build it.
git clone https://github.com/jito-foundation/jito-relayer.git
cd jito-relayer
git submodule update -i -r
cargo b --release
SetUp JitoRelayer
This command will automatically create the relayer.service file, and it will detect and insert the public IP and user ID. Make sure the paths to all files are correct before executing the command.
The systemctl jito-relayer was created, but do not start it now.
SetUp Solana validator with this keys
DO NOT start a validator without this keys!
When you end with Relayer preparation and add needed keys to the validator you need to setting up firewall:
Firewall
π Relayer Launch
Finally! Now we can launch the relayer and our validator with all the necessary parameters.
For starting rellayer you need to write next commands:
Reload the systemd configuration
sudo systemctl daemon-reload
Start the relayer
sudo systemctl restart jito-relayer
If everything is set up correctly, you will see that your validator is connected and using the relayer: https://grafana.metrics.jito.wtf:3000/ (use your PUBKEY in the "Host" field to locate your relayer).
Last step
Before starting to use the relayer, go to the next section and read it carefully.