Useful commands

Useful set of commands for node operators. From key management to chain governance.

🔑 Key management

Generate a new transparent / shielded key

namadaw gen

Recover existing key

namadaw derive

List all keys

namadaw list

Delete key

namadaw remove --alias $ALIAS --do-it

Export key to the file

namadaw export --file path/to/key --alias $ALIAS

Import key from the file

namadaw import --file path/to/key --alias $ALIAS

👷 Validator management

Please make sure you have adjusted moniker, identity, details and website to match your values.

Init new validator

namadac init-validator \
  --alias $VALIDATOR_ALIAS \
  --account-keys $KEY_ALIAS \
  --signing-keys $KEY_ALIAS \
  --commission-rate 0.05 \
  --max-commission-rate-change 0.05 \
  --email $EMAIL

Create validator from existing account

namadac become-validator \
  --address $ADDRESS \
  --signing-keys $KEY_ALIAS \
  --commission-rate 0.05 \
  --max-commission-rate-change 0.05 \
  --email $EMAIL

Unjail validator

namadac unjail-validator --validator $ALIAS

Jail reason

namadac slashes --validator $ALIAS

Query validator information

namadac validator-state --validator $ALIAS

💲 Token management

Withdraw commission and rewards from your validator

namadac claim-rewards --validator $ALIAS

Delegate tokens to yourself or another validator

namadac bond --validator $ALIAS --amount $AMOUNT

Send tokens to the wallet

namadac transfer --source $WALLET --target $TARGET --token tnam1qxvg64psvhwumv3mwrrjfcz0h3t3274hwggyzcee --amount $AMOUNT --signing-keys $ALIAS

🗳 Governance

List all proposals

namadac query-proposal

View proposal by id

namadac query-proposal --proposal-id $ID

Vote 'Yes'

namadac vote-proposal --proposal-id $PROPOSAL_ID --vote yay --address $ADDRESS --memo $MEMO

Vote 'No'

namadac vote-proposal --proposal-id $PROPOSAL_ID --vote nay --address $ADDRESS --memo $MEMO

⚡️ Utility

Update ports

sed -i -e "s%^proxy_app = \"tcp://\"%proxy_app = \"tcp://${CUSTOM_PORT}58\"%; s%^laddr = \"tcp://\"%laddr = \"tcp://${CUSTOM_PORT}57\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}60\"%; s%^laddr = \"tcp://\"%laddr = \"tcp://${CUSTOM_PORT}56\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}66\"%" .local/share/namada/{{ chain_id }}/cometbft/config/config.toml

Update Indexer

Disable indexer

sed -i -e 's|^indexer *=.*|indexer = "null"|' .local/share/namada/{{ chain_id }}/cometbft/config/config.toml

Enable indexer

sed -i -e 's|^indexer *=.*|indexer = "kv"|' .local/share/namada/{{ chain_id }}/cometbft/config/config.toml

🚨 Maintenance

⚙️ Service Management

Reload namada configuration

sudo systemctl daemon-reload

Enable namada

sudo systemctl enable namada

Disable namada

sudo systemctl disable namada

Start namada

sudo systemctl start namada

Stop namada

sudo systemctl stop namada

Restart namada

sudo systemctl restart namada

Check namada status

sudo systemctl status namada

Check namada logs

sudo journalctl -u namada -f --no-hostname -o cat

Last updated