Cheat Sheet

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 entrypointd service, use the following commands:

command services
// start service
sudo systemctl start entrypointd
 
// stop service
sudo systemctl stop entrypointd
 
// restart service
sudo systemctl restart entrypointd
 
// reload service
sudo systemctl daemon-reload
 
// enable service
sudo systemctl enable entrypointd
 
// disable service
sudo systemctl disable entrypointd
 

to check the status of the entrypointd service, use the following command:

command services
// Check logs
sudo journalctl -u entrypointd -f
 
// Check service status
sudo systemctl status entrypointd
 
// Sync info
entrypointd status 2>&1 | jq .SyncInfo
 
// Node info
entrypointd status 2>&1 | jq .NodeInfo
 
 

Managing Keys

Add New Wallet

command
entrypointd keys add $WALLET

Add New Wallet

command dependencies
entrypointd keys add $WALLET --recover

Restore executing wallet

command dependencies
entrypointd keys add $WALLET --recover

List All Wallets

command dependencies
entrypointd keys list

Delete wallet

command
entrypointd keys delete $WALLET

Check Balance

command
entrypointd q bank balances $(entrypointd keys show $WALLET -a)

Export Key (save to wallet.backup)

command
entrypointd keys export $WALLET

View EVM Prived Key

command
entrypointd keys unsafe-export-eth-key $WALLET

Import Key (restore from wallet.backup)

command
entrypointd keys import $WALLET wallet.backup

Validator Operation

Create Validator (replace the values with your own)

command
entrypointd tx staking create-validator \
--amount 1000000uside \
--pubkey $(entrypointd 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)

command
entrypointd 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

command
entrypointd q staking validator $(entrypointd keys show wallet --bech val -a)

Unjail validator

command
entrypointd tx slashing unjail --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas-prices 0.005uside -y

Validator jail reason

command
entrypointd q slashing signing-info $(entrypointd tendermint show-validator)

List active validator

command
entrypointd 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

command
entrypointd 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

command
entrypointd 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

command
entrypointd tx distribution withdraw-rewards $(entrypointd 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

command
entrypointd tx staking delegate $(entrypointd 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

command
entrypointd 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

command
entrypointd tx staking redelegate $(entrypointd 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

command
entrypointd tx staking unbond $(entrypointd 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

command
entrypointd 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

command
entrypointd query gov proposals

View proposal by ID

command
entrypointd query gov proposal 1

Vote option yes

command
entrypointd 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

command
entrypointd 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

command
entrypointd 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

command
entrypointd tx gov vote 1 NoWithVeto --from wallet --chain-id side-testnet-2 --gas-adjustment 1.4 --gas auto --gas