Become a Validator
Please be aware that Steps 1, 2, and 3 are intended to be executed specifically on the primary node. These steps involve retrieving critical information such as the Known Validators, genesis hash
, and gossip ports, which are essential for the setup process.
1. Navigate to the svm-rollup
Directory
svm-rollup
DirectoryOpen your terminal and navigate to the directory where svm-rollup
is located on the primary node. Use the cd
command to change the directory:
2. Run the ./air-solana
Command
./air-solana
CommandExecute the following command to get information about the chain:
This command will display information about the chain, including the Identity
Genesis Hash
and Gossip Address
3. Note Down Required Information:
From the output, identify and note down the following information:
Identity: The value associated with "Identity."
Genesis Hash: The value associated with "Genesis Hash."
Gossip Address: The IP address and port associated with "Gossip Address." If the new node system is local, you can use the local address (127.0.0.1); otherwise, replace it with the public address of the primary node.
Please note that all subsequent steps are required to be executed on the system where the new node is to be started. This is crucial for the successful setup and operation of your new node. Ensure you are performing these actions on the correct system designated for the node's deployment and operation
4. Clone GitHub Repositories
Start by cloning the necessary repositories from GitHub. Use the following commands in your terminal:
5. Initialize Node
To initiate the node, follow these commands:
Switch to the 'rollup-svm'
directory, which you cloned earlier. Use the command:
Run the setup script provided in the 'rollup-svm'
directory. This script will initialize the node with the configuration you've set:
Executing the setup.sh shell file will initialize the node. The initialization process may take 15-20 minutes to build properly. Please be patient during this time.
Make sure to allow sufficient time for the setup to complete before expecting the node to be fully operational.
6. Configure Node
Set RPC URL:
Replace <url>
with the RPC URL and port from the primary node of the chain:
Generate Validator Keypair:
Generate Vote Account Keypair:
Generate Authorized Withdrawer Keypair:
Set Keypair for Configuration:
Check Balance:
Airdrop Some Token:
Create Vote Account:
Run Solana Validator
Replace <gossip_address>
, <genesis-hash>
, and <identifier>
with the details fetched from the primary node:
This command uses nohup
to run the Solana Validator process in the background. It redirects both standard output and standard error to a log file named validator.log
. Adjust the filename as needed.
Make sure to replace <identifier>
, <gossip_address>
, and <genesis-hash>
with the actual values obtained from the primary node.
Last updated