Creating Validator

Create Wallet

this command generate new wallet remember to save the mnemoic

safrochaind keys add $WALLET

Add existing wallet

safrochaind keys add $WALLET --recover

Save wallet and validator address

WALLET_ADDRESS=$(safrochaind keys show $WALLET -a)
VALOPER_ADDRESS=$(safrochaind keys show $WALLET --bech val -a)
echo "export WALLET_ADDRESS="$WALLET_ADDRESS >> $HOME/.bash_profile
echo "export VALOPER_ADDRESS="$VALOPER_ADDRESS >> $HOME/.bash_profile
source $HOME/.bash_profile

check sync status with this bellow command. if your node is fully synced, the output is catching up =false

safrochaind status 2>&1 | jq  

before creating your validator your wallet must have fund you can check your wallet balance with this command

safrochaind query bank balances $WALLET_ADDRESS 

Check Your Pubkey

safrochaind tendermint show-validator

Create validator.json file

sudo nano $HOME/.safrochain/validator.json
{
  "pubkey": ,
  "amount": "100000000usaf",
  "moniker": "",
  "identity": "",
  "website": "",
  "security": "",
  "details": "",
  "commission-rate": "0.05",
  "commission-max-rate": "0.1",
  "commission-max-change-rate": "0.01",
  "min-self-delegation": "1"
}

Creating Validator

safrochaind tx staking create-validator $HOME/.safrochain/validator.json \
--from wallet \
--chain-id safro-testnet-1 \
--fees 5000usaf

And booom...!! your Validator has been up 🎉

Last updated