This cheatsheet provides a collection of commonly used CLI commands for Shentu node operators. It’s designed for easy copying and pasting, with a few conventions:
--chain-id
and --node
flags.jq
.Create a New Account:
shentud keys add <account_name> --keyring-backend <keyring_backend>
List All Accounts:
shentud keys list --keyring-backend <keyring_backend>
Show Account Details:
shentud keys show <account_name> --keyring-backend <keyring_backend>
shentud tx bank send <sender_address> <receiver_address> <amount>uctk \ --chain-id shentu-1 \ --node https://shentu-rpc.chainroot.io:443 --gas=auto --gas-adjustment=1.5 \ --from <your_key>
shentud tx staking delegate <validator_address> <amount>uctk \ --chain-id shentu-1 \ --node https://shentu-rpc.chainroot.io:443 --gas=auto --gas-adjustment=1.5 \ --from <your_key>
shentud tx gov vote PROPOSAL_NUMBER VOTE_OPTION \ --chain-id shentu-1 \ --node https://shentu-rpc.chainroot.io:443 --gas=auto --gas-adjustment=1.5 \ --from <your_key>
VOTE_OPTION
can be yes, no, no_with_veto, or abstain.Get Blockchain Status:
shentud status
Query Account Balances:
shentud query bank balances <account_address> --chain-id quasar-1 --node https://quasar-rpc.chainroot.io:443
Simulate a Transaction:
shentud tx simulate --from <your_key> [additional flags]
Broadcast a Transaction:
shentud tx broadcast <tx_file> --chain-id quasar-1 --node https://quasar-rpc.chainroot.io:443
Remember, always double-check your commands and configurations. For a complete list of commands and options, use shentud --help
or consult the Shentu documentation.