Cheat Sheet
A Tendermint cheat sheet is a quick reference for essential commands to control Tendermint blockchains.
Service Operations
to start, stop, restart, reload, enable, or disable the Cardchaind
service, use the following commands:
// start service
sudo systemctl start Cardchaind
// stop service
sudo systemctl stop Cardchaind
// restart service
sudo systemctl restart Cardchaind
// reload service
sudo systemctl daemon-reload
// enable service
sudo systemctl enable Cardchaind
// disable service
sudo systemctl disable Cardchaind
to check the status of the Cardchaind
service, use the following command:
// Check logs
sudo journalctl -u Cardchaind -f
// Check service status
sudo systemctl status Cardchaind
// Sync info
Cardchaind status 2>&1 | jq .SyncInfo
// Node info
Cardchaind status 2>&1 | jq .NodeInfo
Managing Keys
Add New Wallet
Cardchaind keys add $WALLET
Add New Wallet
Cardchaind keys add $WALLET --recover
Restore executing wallet
Cardchaind keys add $WALLET --recover
List All Wallets
Cardchaind keys list
Delete wallet
Cardchaind keys delete $WALLET
Check Balance
Cardchaind q bank balances $(Cardchaind keys show $WALLET -a)
Export Key (save to wallet.backup)
Cardchaind keys export $WALLET
View EVM Prived Key
Cardchaind keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
Cardchaind keys import $WALLET wallet.backup
Validator Operation
Create Validator (replace the values with your own)
Cardchaind tx staking create-validator \
--amount 1000000uside \
--pubkey $(Cardchaind tendermint show-validator) \
--moniker "your-moniker-name" \
--identity "your-keybase-id" \
--details "your-details" \
--website "your-website" \
--security-contact "your-email" \
--chain-id side-testnet-2 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.005uside \
-y
Edit validator (replace the values with your own)
Cardchaind tx staking edit-validator \
--new-moniker "your-moniker-name" \
--identity "your-keybase-id" \
--details "your-details" \
--website "your-website" \
--security-contact "your-email" \
--chain-id side-testnet-2 \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.005uside \
-y
View validator details
Cardchaind q staking validator $(Cardchaind keys show wallet --bech val -a)
Unjail validator
Cardchaind tx slashing unjail --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y
Validator jail reason
Cardchaind q slashing signing-info $(Cardchaind tendermint show-validator)
List active validator
Cardchaind q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
List inactive validator
Cardchaind q staking validators -oj --limit=3000 | jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " \t " + .description.moniker' | sort -gr | nl
Managing Token
Withdraw reward from all validator
Cardchaind tx distribution withdraw-all-rewards --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y
Withdraw reward and commission
Cardchaind tx distribution withdraw-rewards $(Cardchaind keys show wallet --bech val -a) --commission --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y
Delegate tokens to your validator
Cardchaind tx staking delegate $(Cardchaind keys show wallet --bech val -a) 1000000uside --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y
Delegate token to other validator, change <to-valoper-address>
as you like
Cardchaind tx staking delegate `<to-valoper-address>` 1000000uside --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y
Redelegate to another validator
Cardchaind tx staking redelegate $(Cardchaind keys show wallet --bech val -a) `<to-valoper-address>` 1000000uside --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y
Unbond token from your own validator
Cardchaind tx staking unbond $(Cardchaind keys show wallet --bech val -a) 1000000uside --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y
Send token to the wallet
Cardchaind tx bank send wallet <to-wallet-address> 1000000uside --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y
Governance
Query list proposal
Cardchaind query gov proposals
View proposal by ID
Cardchaind query gov proposal 1
Vote option yes
Cardchaind tx gov vote 1 yes --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y
Vote option no
Cardchaind tx gov vote 1 no --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y
Vote option asbtain
Cardchaind tx gov vote 1 abstain --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y
Vote option NoWithVeto
Cardchaind tx gov vote 1 NoWithVeto --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas