Useful CLI Commands

Get standard debug info from the source daemon:

sourced status

Check if your node is catching up:

# Query via the RPC (default port: 26657)
curl http://localhost:26657/status | jq .result.sync_info.catching_up

Get your node ID:

sourced tendermint show-node-id

Your peer address will be the result of this plus host and port, i.e. <id>@<host>:26656 if you are using the default port.

Check if you are jailed or tombstoned:

sourced query slashing signing-info $(sourced tendermint show-validator)

Set the default chain for commands to use:

sourced config chain-id source-1

Get your valoper address:

sourced keys show <your-key-name> -a --bech val

See keys on the current box:

sourced keys list

Import a key from a mnemonic:

sourced keys add <new-key-name> --recover

Export a private key (warning: don't do this unless you know what you're doing!)

Withdraw rewards (including validator commission), where sourcevaloper1... is the validator address:

Stake:

Find out what the JSON for a command would be using --generate-only:

Add Funds to Community Pool

Delegate to Gov proposal

Vote on Proposal

Query the results of a gov vote that has ended, from a remote RPC (NB - you have to specify a height before the vote ended):

Query the validator set (and jailed status) via CLI:

Query Staking Delegations

Unjail Validator

Get contract state:

Last updated