CLI Cheatsheet
Useful Commands
to check logs of your node
sudo journalctl -u tacchaind -f -o catto start your node service
sudo systemctl start tacchaindStop service
sudo systemctl stop tacchaindRestart node
sudo systemctl restart tacchaindto check sync status
tacchaind status 2>&1 | jq .SyncInfoNode info
tacchaind status 2>&1 | jq .NodeInfoshow node ID
tacchaind tendermint show-node-iddelete wallet
tacchaind keys delete $WALLETto 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 $WALLETWithdraw all rewards
tacchaind tx distribution withdraw-all-rewards --from wallet --chain-id tacchain_2391-1 --gas-prices=4000000000000utac --gas-adjustment=1.2 --gas=autowithdraw 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=autocheck your balance
tacchaind query bank balances $WALLET_ADDRESSdelegate 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=autoredelegate 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=autounbound 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=autotransfer 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=autovalidator 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 -yactive 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 | nlDelete 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 tacchainLast updated