Atlas
As discussed in the v2 optimization guide, Atlas lets you send txs directly to leaders.
Setup
This guide is for Linux (Ubuntu/Debian) only. If you’re on Windows, you can use WSL.
Make sure you have rust and git installed, then run:
sudo apt updatesudo apt install build-essential libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler -ygit clone https://github.com/helius-labs/atlas-txn-sendercd atlas-txn-sendercargo b -r
Start script
Create a startup script, and modify your settings accordingly: (if you’re looking for actual performance, please replace these with your actual, private connections!)
#!/bin/bash
export RPC_ADDR="http://api.mainnet-beta.solana.com/"export GRPC_URL="set_usegrpc_to_true_and_put_your_grpc_here_else_this_will_be_ignored"export X_TOKEN="you_probably_dont_need_this_but_if_you_do_set_it"
cargo r -r
More options can be found at the Atlas repo.
Save it in a file called start.sh, and run it with:
bash start.sh