CLI Cheatsheet

Useful Commands

to check logs of your node

sudo journalctl -u tacchaind -f -o cat

to start your node service

sudo systemctl start tacchaind

Stop service

sudo systemctl stop tacchaind

Restart node

sudo systemctl restart tacchaind

to check sync status

tacchaind status 2>&1 | jq .SyncInfo

Node info

tacchaind status 2>&1 | jq .NodeInfo

show node ID

tacchaind tendermint show-node-id

delete wallet

tacchaind keys delete $WALLET

to check wallet balance

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

transfer funds to another wallet

tacchaind tx bank send wallet <TO_WALLET_ADDRESS> 1000000000000000000utac --from wallet --chain-id tacchain_2391-1 --gas-prices=4000000000000utac --gas-adjustment=1.2 --gas=auto

View evm priv key

tacchaind keys unsafe-export-eth-key $WALLET

Withdraw all rewards

tacchaind tx distribution withdraw-all-rewards --from wallet --chain-id tacchain_2391-1 --gas-prices=4000000000000utac --gas-adjustment=1.2 --gas=auto

withdraw rewards and comission from your validator

tacchaind tx distribution withdraw-rewards $(tacchaind keys show wallet --bech val -a) --commission --from wallet --chain-id tacchain_2391-1 --gas-prices=4000000000000utac --gas-adjustment=1.2 --gas=auto

check your balance

tacchaind query bank balances $WALLET_ADDRESS

delegate to your self

tacchaind tx staking delegate $(tacchaind keys show wallet --bech val -a) 1000000000000000000utac --from wallet --chain-id tacchain_2391-1 --gas-prices=4000000000000utac --gas-adjustment=1.2 --gas=auto

redelegate stake to another validator

tacchaind staking redelegate $(tacchaind keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000000000000000utac --from wallet --chain-id tacchain_2391-1 --gas-prices=4000000000000utac --gas-adjustment=1.2 --gas=auto

unbound stake

tacchaind tx staking unbond $(tacchaind keys show wallet --bech val -a) 1000000000000000000 --from wallet --chain-id tacchain_2391-1 --gas-prices=4000000000000utac --gas-adjustment=1.2 --gas=auto

transfer funds

tacchaind tx bank send wallet <TO_WALLET_ADDRESS> 1000000000000000000utac --from wallet --chain-id tacchain_2391-1 --gas-prices=4000000000000utac --gas-adjustment=1.2 --gas=auto

validator details

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

jailing info

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

unjail validator

tacchaind tx slashing unjail --from wallet --chain-id tacchain_2391-1  --gas-adjustment=1.2 --gas auto --fees 4070875000000000utac -y

active set validator

tacchaind 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 tacchaind
sudo systemctl disable tacchaind
sudo rm /etc/systemd/system/tacchaind.service
sudo systemctl daemon-reload
sudo rm -f $(which tacchaind)
sudo rm -rf .tacchaind
sudo rm -rf tacchain

Last updated