Validator Operations

Create New Validator

0gchaind tx staking create-validator \
--amount 1000000ua0gi \
--from $WALLET \
--commission-rate 0.05 \
--commission-max-rate 0.1 \
--commission-max-change-rate 0.05 \
--min-self-delegation 1 \
--pubkey $(0gchaind tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "" \
--chain-id zgtendermint_16600-2 \
--security-contact="" \
--gas-adjustment 1.4 \
--gas auto \
-y

Edit Existing Validator

0gchaind tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "" \
--from $WALLET \
--chain-id zgtendermint_16600-2 \
--gas-adjustment 1.4 --gas auto \
-y

Validator info

0gchaind status 2>&1 | jq .ValidatorInfo

Validator Details

0gchaind q staking validator $(0gchaind keys show $WALLET --bech val -a)

Jailing info

0gchaind q slashing signing-info $(0gchaind tendermint show-validator)

Slashing parameters

0gchaind q slashing params

Unjail validator

0gchaind tx slashing unjail --from $WALLET --chain-id zgtendermint_16600-2 --gas-adjustment 1.4 --gas auto -y

Active Validators List

0gchaind q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " 	 " + .description.moniker' | sort -gr | nl

Check Validator key

[[ $(0gchaind q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(0gchaind status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"

Signing info

0gchaind q slashing signing-info $(0gchaind tendermint show-validator)

Last updated