Validator Operations
Create New Validator
# Create Validator.json File
tee $HOME/.kopid/validator.json > /dev/null <<EOF
{
"pubkey": $(kopid tendermint show-validator),
"moniker": "$MONIKER",
"min-self-delegation": "1",
"amount": "1000000ukopi",
"commission-rate": "0.05",
"commission-max-rate": "0.1",
"commission-max-change-rate": "0.01",
"identity": "Keybase-ID-Here",
"website": "validator's (optional) website",
"security": "validator's (optional) security contact email",
"details": "I am the Best!"
}
EOF
# Bond the Validator
kopid tx staking create-validator $HOME/.kopid/validator.json --from $WALLET
Edit Existing Validator
kopid tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "" \
--from $WALLET \
--chain-id luwak-1 \
--fees 5000ukopi \
-y
Validator info
kopid status 2>&1 | jq .ValidatorInfo
Validator Details
kopid q staking validator $(kopid keys show $WALLET --bech val -a)
Jailing info
kopid q slashing signing-info $(kopid tendermint show-validator)
Slashing parameters
kopid q slashing params
Unjail validator
kopid tx slashing unjail --from $WALLET --chain-id luwak-1 --fees 5000ukopi -y
Active Validators List
kopid 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
[[ $(kopid q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(kopid status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
kopid q slashing signing-info $(kopid tendermint show-validator)
Last updated