Useful Commands

Useful Commands

Generate New Key

namadaw gen --alias "${KEY_NAME}"

Recover Existing key

namadaw derive --alias "${KEY_NAME}"

Check Alias Address

namadaw find --alias "${KEY_NAME}"

List Keys

namadaw  list

Unjail Validator

namadac unjail-validator --validator  "<Validator address tham1...>"

Claim Rewards

namadac claim-rewards --validator "<Validator address tnam1...>"

Check Balance

namadac balance --owner "${KEY_NAME}"

Query TX

namadac tx-result --tx-hash <TX HASH> --node tcp://149.50.96.147:31657

Export Validator Key

namadac find-validator --tm-address=$(curl -s localhost:26657/status | jq -r .result.validator_info.address)

Send Funds

namadac  transfer --target <RECEIVER-KEY(tnam1..)> --source ${KEY_NAME} --amount 100 --token NAM 

Unbond Tokens

namadac unbond \
  --source wallet \
  --validator "${VAL_NAME}" \
  --amount 12.34

Check Validator Consensus

namadac validator-state --validator "<Validator address tham1...>"

Service

Enable Service

sudo systemctl enable namadad.service

Disable Service

sudo systemctl disable namadad.service

Start Service

sudo systemctl start namadad.service

Stop Service

sudo systemctl stop namadad.service

Restart Service

sudo systemctl restart namadad.service

Check Service Status

sudo systemctl status namadad.service

Check Logs

sudo journalctl namadad.service -fu -o cat

Disable Indexer

sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.local/share/namada/shielded-expedition.b40d8e9055/config.toml

Enable Indexer

sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.local/share/namada/shielded-expedition.b40d8e9055/config.toml

Reset Node

sudo systemctl stop namadad.service
namada node ledger reset

Delete Node

sudo systemctl stop namadad.service
sudo systemctl disable namadad.service

sudo rm /etc/systemd/system/namadad.service
sudo systemctl daemon-reload

rm -f /usr/local/bin/namada* /usr/local/bin/cometbft
rm -rf $HOME/.local/share/namada

Last updated