Validator Operations
Create New Validator
cd $HOME
# Create validator.json file
(cat <<EOF
{
"pubkey": "$(pellcored tendermint show-validator)",
"amount": "1000000apell",
"moniker": "$MONIKER",
"identity": "",
"website": "",
"security": "",
"details": "",
"commission-rate": "0.05",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
EOF
) > $HOME/.pellcored/validator.json
# Create a validator using the JSON configuration
pellcored tx staking create-validator $HOME/.pellcored/validator.json \
--from $WALLET \
--chain-id ignite_186-1 \
--fees 30apell --gas 300000
Edit Existing Validator
pellcored tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "" \
--from $WALLET \
--chain-id ignite_186-1 \
--fees 30apell --gas 300000 \
-y
Validator info
pellcored status 2>&1 | jq .ValidatorInfo
Validator Details
pellcored q staking validator $(pellcored keys show $WALLET --bech val -a)
Jailing info
pellcored q slashing signing-info $(pellcored tendermint show-validator)
Slashing parameters
pellcored q slashing params
Unjail validator
pellcored tx slashing unjail --from $WALLET --chain-id ignite_186-1 --fees 30apell --gas 300000 -y
Active Validators List
pellcored 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
[[ $(pellcored q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(pellcored status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
pellcored q slashing signing-info $(pellcored tendermint show-validator)
Last updated