CLI Cheatsheet

Useful Commands

to check logs of your node

sudo journalctl -u achillesd -f

to start your node service

sudo systemctl start achillesd

Stop service

sudo systemctl stop achillesd

Restart node

sudo systemctl restart achillesd

to check sync status

achillesd status 2>&1 | jq .SyncInfo

Node info

achillesd status 2>&1 | jq .NodeInfo

show node ID

achillesd tendermint show-node-id

delete wallet

achillesd keys delete $WALLET

to check wallet balance

achillesd q bank balances $(achillesd keys show $WALLET -a)

transfer funds to another wallet

achillesd tx bank send wallet <TO_WALLET_ADDRESS> 1000000uodis --from $WALLET --chain-id ithaca-1 --gas-prices=0.25uodis --gas-adjustment=1.5 --gas=auto

View evm priv key

achillesd keys unsafe-export-eth-key $WALLET

Withdraw all rewards

achillesd tx distribution withdraw-all-rewards --from $WALLET --chain-id ithaca-1 --gas-prices=0.25uodis --gas-adjustment=1.5 --gas=auto

withdraw rewards and comission from your validator

achillesd tx distribution withdraw-rewards $(achillesd keys show wallet --bech val -a) --commission --from $WALLET --chain-id ithaca-1 --gas-prices=0.25uodis --gas-adjustment=1.5 --gas=auto

check your balance

achillesd query bank balances $WALLET_ADDRESS

delegate to your self

achillesd tx staking delegate $(achillesd keys show wallet --bech val -a) 1000000uodis --from $WALLET --chain-id ithaca-1 --gas-prices=0.25uodis --gas-adjustment=1.5 --gas=auto

redelegate stake to another validator

achillesd staking redelegate $(achillesd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000uodis --from $WALLET --chain-id ithaca-1 --gas-prices=0.25uodis --gas-adjustment=1.5 --gas=auto

unbound stake

achillesd tx staking unbond $(achillesd keys show wallet --bech val -a) 1000000uodis --from $WALLET --chain-id ithaca-1 --gas-prices=0.25uodis --gas-adjustment=1.5 --gas=auto

transfer funds

achillesd tx bank send wallet <TO_WALLET_ADDRESS> 1000000uodis --from $WALLET --chain-id ithaca-1 --gas-prices=0.25uodis --gas-adjustment=1.5 --gas=auto

validator details

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

jailing info

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

unjail validator

achillesd tx slashing unjail --from $WALLET --chain-id ithaca-1 --gas-prices=0.25uodis --gas-adjustment=1.5 --gas=auto

active set validator

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

Delete Node

sudo systemctl stop achillesd
sudo systemctl disable achillesd
sudo rm /etc/systemd/system/achillesd.service
sudo systemctl daemon-reload
rm -f $(which achillesd)
rm -rf .achilles

Last updated