Useful Commands

✅ Node Status

Check Node Status:

curl localhost:26657/status | jq

Check Node Protocol Version:

curl -s localhost:26657/status | jq -r '.result.node_info.protocol_version.p2p'

Check Node ID:

curl -s localhost:26657/status | jq -r '.result.node_info.id'

Check Node Listen Address:

curl -s localhost:26657/status | jq -r '.result.node_info.listen_addr'

Check Network Name:

curl -s localhost:26657/status | jq -r '.result.node_info.network'

Check Node Version:

curl -s localhost:26657/status | jq -r '.result.node_info.version'

Check Node Moniker:

curl -s localhost:26657/status | jq -r '.result.node_info.moniker'

Check RPC Address:

curl -s localhost:26657/status | jq -r '.result.node_info.other.rpc_address'

Check Latest Block Height:

curl -s localhost:26657/status | jq -r '.result.sync_info.latest_block_height'

Check If Node is Catching Up:

curl -s localhost:26657/status | jq -r '.result.sync_info.catching_up'

Check Node Peers:

curl -s localhost:26657/net_info | jq

Check Block Information:

curl -s localhost:26657/block | jq

Check Blockchain Information:

curl -s localhost:26657/blockchain | jq

Check Mempool Information:

curl -s localhost:26657/mempool | jq

Check Consensus State:

curl -s localhost:26657/consensus_state | jq

heck Health Status:

curl -s localhost:26657/health | jq

✅ Address and Wallet

namada wallet = namadaw

Generate a New Wallet:

namada wallet gen --alias $WALLET_NAME

Derive Key from Mnemonic or Hardware Wallet:

namada wallet derive --alias $WALLET_NAME

Generate a Payment Address:

namada wallet gen-payment-addr --alias $WALLET_NAME

List Known Keys and Addresses:

namadaw list

Find Known Keys and Addresses:

namada wallet find --alias $WALLET_NAME

Remove a Key or Address from the Wallet:

namada wallet remove --alias $WALLET_NAME

Grep Your Validator:

namadaw list --addr | grep $MONIKER

✅ Validator and Staking

namada client = namadac

Bond Token to Your Validator (adjust the amount):

namada client bond \
  --validator $MONIKER \
  --amount 1000 \
  --source $WALLET_NAME

Check Bonds:

namada client bonds --owner $WALLET_NAME

Query the Set of Validators:

namadac bonded-stake

Check Your Validator State:

namadac validator-state --validator $MONIKER

Unjail Your Validator:

namada client unjail-validator --validator $MONIKER

Change Validator's Commission Rate (adjust the rate):

namada client change-commission-rate --validator $MONIKER --rate 0.10 --source $WALLET_NAME

Change Consensus Key:

namada client change-consensus-key --validator $MONIKER --new-key $NEW_KEY --source $WALLET_NAME

Change Validator Metadata:

namada client change-metadata --validator $MONIKER --name "New Validator Name" --website "https://example.com" --source $WALLET_NAME

Unbond Tokens:

namada client unbond --validator $MONIKER --amount 500 --source $WALLET_NAME

Redelegate Tokens (add $DEST_MONIKER):

namada client redelegate --source-validator $MONIKER --destination-validator $DEST_MONIKER --amount 500 --source $WALLET_NAME

Withdraw Tokens:

namada client withdraw --source $WALLET_NAME --amount 500

Delegate Tokens to a Validator (adjust the amount):

namada client delegate --validator $MONIKER --amount 1000 --source $WALLET_NAME

Check Delegations:

namada client delegations --owner $WALLET_NAME

Withdraw Rewards:

namada client withdraw-rewards --owner $WALLET_NAME

✅ Transactions and Transfers

✅ Account and Proposal

✅ Query Commands

✅ Network and Configuration

Last updated