Validator Operations

Create New Validator

# Create validator.json file
tee $HOME/.aaronetwork/validator.json > /dev/null << EOF
{
        "pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"oWg2ISpLF405Jcm2vXV+2v4fnjodh6aafuIdeoW+rUw="},
        "amount": "1000000uaaron",
        "moniker": "myvalidator",
        "identity": "optional identity signature (ex. UPort or Keybase)",
        "website": "validator's (optional) website",
        "security": "validator's (optional) security contact email",
        "details": "validator's (optional) details",
        "commission-rate": "0.05",
        "commission-max-rate": "0.2",
        "commission-max-change-rate": "0.01",
        "min-self-delegation": "1"
}
EOF

# Send bonding transaction
aaronetworkd tx staking create-validator $HOME/.aaronetwork/validator.json --from $WALLET

Edit Existing Validator

aaronetworkd tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "" \
--from $WALLET \
--chain-id aaronetwork \
--fees 3000uaaron\
-y

Validator info

aaronetworkd status 2>&1 | jq .ValidatorInfo

Validator Details

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

Jailing info

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

Slashing parameters

aaronetworkd q slashing params

Unjail validator

aaronetworkd tx slashing unjail --from $WALLET --chain-id aaronetwork --fees 3000uaaron-y

Active Validators List

aaronetworkd 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

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

Signing info

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

Last updated