Validator Operations

Create New Validator

swisstronikd tx staking create-validator \
--amount 1000000nivea \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(swisstronikd tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "" \
--chain-id swisstronik_1291-1 \
--fees=2111351aswtr \
-y

Edit Existing Validator

swisstronikd tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "" \
--from $WALLET \
--chain-id swisstronik_1291-1 \
--fees 2111351aswtr \
-y

Validator info

swisstronikd status 2>&1 | jq .ValidatorInfo

Validator Details

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

Jailing info

swisstronikd q slashing signing-info $(swisstronikd tendermint show-validator)

Slashing parameters

swisstronikd q slashing params

Unjail validator

swisstronikd tx slashing unjail --from $WALLET --chain-id swisstronik_1291-1 --fees 2111351aswtr -y

Active Validators List

swisstronikd 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

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

Signing info

swisstronikd q slashing signing-info $(swisstronikd tendermint show-validator)

Last updated