How to become a validator?
Hardware requirements:
Validator
8 cores
16 GB
500 GB
Minimum
Validator
8 cores
32GB
upto 2 TB
Recommended
Build Tools
Install Go
Download the latest version of go Lang for Linux from here.
We are using version 1.19.3 for this tutorial.
Install Binaries
The following commands will install the gaia binaries onto your system.
You can always check for the latest version of gaia from here.
For this tutorial we are using the 7.1.0 version of gaia.
Join the public testnet
For this tutorial we are configuring our node to run on the theta-testnet-001.
When you are ready you can join the mainnet from here.
Configuration and setup
The following commands will configure our node files in order to join the testnet.
For up to date values on joining the testnet you can always visit the testnet repository.
State Sync
State sync is a endpoint provider which serves the snapshots at every 1000 blocks.
Using state sync enables us to quickly sync our node to the latest block height.
Start the node in the background
Once we are done configuring our files. We can start running our node which can sync to the latest blockheight.
To start the node as a service. Perform the following steps.
Enable and start the node as a service
Check logs
Check sync status
If the above command returns false. This means your node is synced to the latest block height.
Now, you can run the command to become a validator.
You cannot perform any transaction on the cosmos blockchain if your node is not synced to the latest block height.
Become a validator
Note: You need to have a full node running and synced before you become a validator.
Setting up gaiad
In this tutorial we are running our own node, so we will configure tcp://localhost:26657 for our validator.
Paste the following command
Generate a key to sign blocks
The following command will generate a key file which will be used to sign blocks onto the cosmos blockchain
Note: A mnemonic seed phase will be generated when you create a key. We can then use this seed phase to import our account into keplr wallet.
Import account into Keplr Wallet
Prerequisites:
You need to install Keplr Wallet Chrome extension already setup.
Open this link in order to add the testnet rpc to your wallet.
Steps to import your account
Open the keplr wallet chrome extension.
Click on add account.
Select import existing account.
Enter the seed phase that was generated in the previous step.
Done, you have now successfully imported you account into the keplr wallet.
Create a validator
We need to keep the following things in mind before sending a transaction for becoming a validator:
We need to stake at least 1 atom.
Before sending the transaction the full node we are using should be synced to the latest block height.
Once create-validator transaction is sent, we cannot withdraw atoms for next 21 days. This is also referred to as lock up period.
Check validator signing info
Explorer Links:
Theta Testnet: https://testnet.cosmos.bigdipper.live/
Cosmoshub-4 Mainnet: https://cosmos.bigdipper.live/
Last updated