CLI Cheatsheet Commands

Check out Chain - Info.
NetworkChainVersion
Testnettacchain_2391-1v0.0.10

SYNC

npx
tacchaind status 2>&1 | jq .sync_info

Wallet ;

  • If you want you can change wallet name - "wallet" change.
  • Wallet Add
npx
tacchaind keys add wallet
  • Wallet Recover
npx
tacchaind keys add wallet --recover
  • List Wallet
npx
tacchaind keys list
  • Delete Wallet
npx
tacchaind keys delete wallet
  • Wallet Balance
npx
tacchaind q bank balances $(tacchaind keys show wallet -a)

Validator Commands

  • Pubkey ;
npx
tacchaind tendermint show-validator
  • Validator Crate
npx
echo "{\"pubkey\":{\"@type\":\"/cosmos.crypto.ed25519.PubKey\",\"key\":\"$(tacchaind tendermint show-validator | grep -Po '\"key\":\s*\"\K[^"]*')\"},
    \"amount\": \"miktar000000000000000000utac\",
    \"moniker\": \"test\",
    \"identity\": \"\",
    \"website\": \"\",
    \"security\": \"\",
    \"details\": \"CR\",
    \"commission-rate\": \"0.1\",
    \"commission-max-rate\": \"0.2\",
    \"commission-max-change-rate\": \"0.01\",
    \"min-self-delegation\": \"1\"
}" > validatortx.json
  • Crate ;
npx
tacchaind tx staking create-validator validatortx.json \
    --from wallet \
    --chain-id tacchain_2391-1 \
    --node http://localhost:59657 \
    --gas auto --gas-adjustment 1.4 --fees 9503625000000000utac -y
  • Unjail ;
npx
tacchaind tx slashing unjail --from wallet --chain-id tacchain_2391-1 --gas-prices=0.025utac --gas-adjustment=1.5 --gas=auto
  • Jail Check ;
npx
tacchaind query slashing signing-info $(tacchaind tendermint show-validator)

Management ;

  • Withdraw Rewards
npx
tacchaind tx distribution withdraw-all-rewards --from wallet --chain-id tacchain_2391-1 --gas-prices=0.025utac --gas-adjustment=1.5 --gas=auto
  • Withdraw Rewards with Comission
npx
tacchaind tx distribution withdraw-rewards $(tacchaind keys show wallet --bech val -a) --commission --from wallet --chain-id tacchain_2391-1 --gas-prices=0.025utac --gas-adjustment=1.5 --gas=auto
  • Delegate Token to your own validator
npx
tacchaind tx staking delegate $(tacchaind keys show wallet --bech val -a) 1000000utac --from wallet --chain-id tacchain_2391-1 --gas-prices=0.025utac --gas-adjustment=1.5 --gas=auto
  • Delegate Token to other validator
npx
tacchaind staking redelegate $(tacchaind keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000utac --from wallet --chain-id tacchain_2391-1 --gas-prices=0.025utac --gas-adjustment=1.5 --gas=auto
  • Unbond Token from your validator
npx
tacchaind tx staking unbond $(tacchaind keys show wallet --bech val -a) 1000000utac --from wallet --chain-id tacchain_2391-1 --gas-prices=0.025utac --gas-adjustment=1.5 --gas=auto
  • Send Token to another wallet
npx
tacchaind tx bank send wallet <TO_WALLET_ADDRESS> 1000000utac --from wallet --chain-id tacchain_2391-1 --gas-prices=0.025utac --gas-adjustment=1.5 --gas=auto

Delete Node

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