Creating validator

Before creating validator your node should be sync and your wallet must have fund.

Creating Wallet

to create new wallet use this command

initiad keys add $WALLET

to recover existing wallet you can use this command

initiad keys add $WALLET --recover

Save Wallet and Validator Address

WALLET_ADDRESS=$(initiad keys show $WALLET -a)
VALOPER_ADDRESS=$(initiad 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

initiad status 2>&1 | jq

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

initiad query bank balances $WALLET_ADDRESS 

Create Validator

initiad tx mstaking create-validator \
--amount 1000000uinit \
--pubkey $(initiad tendermint show-validator) \
--moniker "$MONIKER" \
--identity "YOUR_IDENTITY" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE" \
--chain-id initiation-1 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.05 \
--from $WALLET \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.15uinit \
-y

Kudos...! your validator has been up right now

Last updated