Skip to main content

Cheat Sheet

Wallet

Add New Wallet

achillesd keys add wallet

Restore executing wallet

achillesd keys add wallet --recover

List All Wallets

achillesd keys list

Export Key

achillesd keys export wallet

Delete wallet

achillesd keys delete wallet

Check Balance

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

Validator Management

Check sync

achillesd status 2>&1 | jq .SyncInfo.catching_up

Create Validator

achillesd tx staking create-validator \
--amount "1000000uodis" \
--pubkey $(achillesd tendermint show-validator) \
--moniker "<MONIKER>" \
--identity "" \
--details "" \
--website "" \
--chain-id ithaca-1 \
--commission-rate "0.05" \
--commission-max-rate "0.2" \
--commission-max-change-rate "0.01" \
--min-self-delegation "1" \
--gas-prices 0uodis \
--gas "auto" \
--gas-adjustment "1.5" \
--from wallet \
-y

Edit Validator

achillesd tx staking edit-validator \
--new-moniker "<MONIKER>" \
--identity "" \
--details "" \
--website "" \
--chain-id ithaca-1 \
--commission-rate "0.05" \
--gas-prices 0uodis \
--gas "auto" \
--gas-adjustment "1.5" \
--from wallet \
-y

Unjail Validator

achillesd tx slashing unjail \
--chain-id ithaca-1 \
--gas-prices 0uodis \
--gas-adjustment 1.5 \
--gas "auto" \
--from wallet \
-y

Signing Info

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

Withdraw rewards from all validators

achillesd tx distribution withdraw-all-rewards --from wallet --chain-id ithaca-1 --gas-prices 0uodis  --gas-adjustment 1.5 --gas "auto" -y 

Withdraw comission and rewards from your validator

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

Unbond

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

Delegate to your validator

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

Redelegate your stake to other validators

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

Vote - Yes or No

achillesd tx gov vote 1 yes \
--from wallet \
--chain-id ithaca-1 \
--gas-prices 0uodis \
--gas-adjustment 1.5 \
--gas "auto" \
-y

Services Management

# Reload Service
sudo systemctl daemon-reload

# Enable Service
sudo systemctl enable achillesd

# Disable Service
sudo systemctl disable achillesd

# Start Service
sudo systemctl start achillesd

# Stop Service
sudo systemctl stop achillesd

# Restart Service
sudo systemctl restart achillesd

# Check Service Status
sudo systemctl status achillesd

# Check Service Logs
sudo journalctl -u achillesd -f --no-hostname -o cat

Backup Validator

cat $HOME/.achilles/config/priv_validator_key.json

Delete Node

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