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 humansd
service, use the following commands:
// start service
sudo systemctl start humansd
// stop service
sudo systemctl stop humansd
// restart service
sudo systemctl restart humansd
// reload service
sudo systemctl daemon-reload
// enable service
sudo systemctl enable humansd
// disable service
sudo systemctl disable humansd
to check the status of the humansd
service, use the following command:
// Check logs
sudo journalctl -u humansd -f
// Check service status
sudo systemctl status humansd
// Sync info
humansd status 2>&1 | jq .SyncInfo
// Node info
humansd status 2>&1 | jq .NodeInfo
Managing Keys
Add New Wallet
humansd keys add $WALLET
Add New Wallet
humansd keys add $WALLET --recover
Restore executing wallet
humansd keys add $WALLET --recover
List All Wallets
humansd keys list
Delete wallet
humansd keys delete $WALLET
Check Balance
humansd q bank balances $(humansd keys show $WALLET -a)
Export Key (save to wallet.backup)
humansd keys export $WALLET
View EVM Prived Key
humansd keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
humansd keys import $WALLET wallet.backup
Validator Operation
Create Validator (replace the values with your own)
humansd tx staking create-validator \
--amount 1000000uside \
--pubkey $(humansd 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)
humansd 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
humansd q staking validator $(humansd keys show wallet --bech val -a)
Unjail validator
humansd tx slashing unjail --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y
Validator jail reason
humansd q slashing signing-info $(humansd tendermint show-validator)
List active validator
humansd 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
humansd 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
humansd 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
humansd tx distribution withdraw-rewards $(humansd 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
humansd tx staking delegate $(humansd 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
humansd 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
humansd tx staking redelegate $(humansd 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
humansd tx staking unbond $(humansd 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
humansd 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
humansd query gov proposals
View proposal by ID
humansd query gov proposal 1
Vote option yes
humansd 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
humansd 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
humansd 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
humansd tx gov vote 1 NoWithVeto --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas