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