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