Validator Operations

Create New Validator

# Create validator.json file
(cat <<EOF
{
  "pubkey": "$(junod tendermint show-validator)",
  "amount": "1000000ujunox",
  "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/.juno/validator.json

# Create a validator using the JSON configuration
junod tx staking create-validator $HOME/.juno/validator.json \
--from $WALLET \
--gas-adjustment 1.4 --gas auto --gas-prices 0.1ujunox -y

Edit Existing Validator

junod tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "" \
--from $WALLET \
--chain-id uni-7 \
--gas-adjustment 1.4 --gas auto --gas-prices 0.1ujunox \
-y

Validator info

junod status 2>&1 | jq .ValidatorInfo

Validator Details

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

Jailing info

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

Slashing parameters

junod q slashing params

Unjail validator

junod tx slashing unjail --from $WALLET --chain-id uni-7 --gas-adjustment 1.4 --gas auto --gas-prices 0.1ujunox -y

Active Validators List

junod 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

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

Signing info

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

Last updated