Useful commands

Add new key

evmosd keys add wallet

Recover existing key

evmosd keys add wallet --recover

List all keys

evmosd keys list

Delete key

evmosd keys delete wallet

Query wallet balance

evmosd q bank balances $(evmosd keys show wallet -a)

Create new validator

evmosd tx staking create-validator \
--amount 1000000aevmos \
--pubkey $(evmosd tendermint show-validator) \
--moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id evmos_9000-4 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 25000000aevmos \
-y

Edit validator

evmosd tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id evmos_9000-4 \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 25000000aevmos \
-y

Unjail validator

evmosd tx slashing unjail --from wallet --chain-id evmos_9000-4 --gas-adjustment 1.4 --gas auto --gas-prices 25000000aevmos -y

Jail reason

evmosd query slashing signing-info $(evmosd tendermint show-validator)

List all active validators

evmosd q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl

List all inactive validators

evmosd q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl

Withdraw rewards from all validators

evmosd tx distribution withdraw-all-rewards --from wallet --chain-id evmos_9000-4 --gas-adjustment 1.4 --gas auto --gas-prices 25000000aevmos -y

Withdraw commission and rewards from your validator

evmosd tx distribution withdraw-rewards $(evmosd keys show wallet --bech val -a) --commission --from wallet --chain-id evmos_9000-4 --gas-adjustment 1.4 --gas auto --gas-prices 25000000aevmos -y

Delegate to yourself

evmosd tx staking delegate $(evmosd keys show wallet --bech val -a) 1000000aevmos --from wallet --chain-id evmos_9000-4 --gas-adjustment 1.4 --gas auto --gas-prices 25000000aevmos -y

Delegate tokens to validator

evmosd tx staking delegate <TO_VALOPER_ADDRESS> 1000000aevmos --from wallet --chain-id evmos_9000-4 --gas-adjustment 1.4 --gas auto --gas-prices 25000000aevmos -y

Redelegate tokens to another validator

evmosd tx staking redelegate $(evmosd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000aevmos --from wallet --chain-id evmos_9000-4 --gas-adjustment 1.4 --gas auto --gas-prices 25000000aevmos -y

Unbond tokens from your validator

evmosd tx staking unbond $(evmosd keys show wallet --bech val -a) 1000000aevmos --from wallet --chain-id evmos_9000-4 --gas-adjustment 1.4 --gas auto --gas-prices 25000000aevmos -y

Send tokens to the wallet

evmosd tx bank send wallet <TO_WALLET_ADDRESS> 1000000aevmos --from wallet --chain-id evmos_9000-4 --gas-adjustment 1.4 --gas auto --gas-prices 25000000aevmos -y

View validator details

evmosd q staking validator $(evmosd keys show wallet --bech val -a)

Slashing params

evmosd q slashing params

Signing Info

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

Get validator info

evmosd status 2>&1 | jq .ValidatorInfo

Get sync info

evmosd status 2>&1 | jq .SyncInfo

Check validator key

[[ $(evmosd q staking validator $(evmosd keys show wallet --bech val -a) -oj | jq -r .consensus_pubkey.key) = $(evmosd status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "\n\e[1m\e[32mTrue\e[0m\n" || echo -e "\n\e[1m\e[31mFalse\e[0m\n"

Governance

evmosd tx gov vote 1 yes --from wallet --chain-id evmos_9000-4 --gas-prices 25000000aevmos --gas-adjustment 1.5 --gas auto -y

Remove node

cd $HOME
sudo systemctl stop evmosd
sudo systemctl disable evmosd
sudo rm /etc/systemd/system/evmosd.service
sudo systemctl daemon-reload
rm -f $(which evmosd)
rm -rf $HOME/.evmosd
rm -rf $HOME/evmos

Reload service configuration

sudo systemctl daemon-reload

Enable service

sudo systemctl enable evmosd

Disable service

sudo systemctl disable evmosd

Start service

sudo systemctl start evmosd

Stop service

sudo systemctl stop evmosd

Restart service

sudo systemctl restart evmosd

Check service status

sudo systemctl status evmosd

Check service logs

sudo journalctl -u evmosd -f --no-hostname -o cat

Last updated