Service operations ⚙️

Check logs

sudo journalctl -u namada -f

Start service

sudo systemctl start namada

Stop service

sudo systemctl stop namada

Restart service

sudo systemctl restart namada

Check service status

sudo systemctl status namada

Reload services

sudo systemctl daemon-reload

Enable Service

sudo systemctl enable namada

Disable Service

sudo systemctl disable namada

Sync info

namada status 2>&1 | jq .SyncInfo

Node info

namada status 2>&1 | jq .NodeInfo

Your node peer

echo $(namada tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')

Key management

Add New Wallet

namada keys add $WALLET

Restore executing wallet

namada keys add $WALLET --recover

List All Wallets

namada keys list

Delete wallet

namada keys delete $WALLET

Check Balance

namada q bank balances $(namada keys show $WALLET -a)

Export Key (save to wallet.backup)

namada keys export $WALLET

Import Key (restore from wallet.backup)

namada keys import $WALLET wallet.backup

Tokens

To valoper address
To wallet address
Amount, tnam

Withdraw all rewards

namada tx distribution withdraw-all-rewards --from $WALLET --chain-id namada.5f5de2dd1b88cba30586420 

Withdraw rewards and commission from your validator

namada tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id namada.5f5de2dd1b88cba30586420  -y

Check your balance

namada query bank balances $WALLET_ADDRESS

Delegate to Yourself

namada tx staking delegate $(namada keys show $WALLET --bech val -a) 1000000tnam --from $WALLET --chain-id namada.5f5de2dd1b88cba30586420  -y

Delegate

namada tx staking delegate <TO_VALOPER_ADDRESS> 1000000tnam --from $WALLET --chain-id namada.5f5de2dd1b88cba30586420  -y

Redelegate Stake to Another Validator

namada tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000tnam --from $WALLET --chain-id namada.5f5de2dd1b88cba30586420  -y

Unbond

namada tx staking unbond $(namada keys show $WALLET --bech val -a) 1000000tnam --from $WALLET --chain-id namada.5f5de2dd1b88cba30586420  -y

Transfer Funds

namada tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000tnam  -y

Validator operations

Moniker
Identity
Details
Amount, tnam
Commission rate
Commission max rate
Commission max change rate

Create New Validator

namada tx staking create-validator \
--amount 1000000tnam \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(namada tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--chain-id namada.5f5de2dd1b88cba30586420 \
 \
-y

Edit Existing Validator

namada tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--from $WALLET \
--chain-id namada.5f5de2dd1b88cba30586420 \
 \
-y

Validator info

namada status 2>&1 | jq .ValidatorInfo

Validator Details

namada q staking validator $(namada keys show $WALLET --bech val -a)

Jailing info

namada q slashing signing-info $(namada tendermint show-validator)

Slashing parameters

namada q slashing params

Unjail validator

namada tx slashing unjail --from $WALLET --chain-id namada.5f5de2dd1b88cba30586420  -y

Active Validators List

namada q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " 	 " + .description.moniker' | sort -gr | nl

Check Validator key

[[ $(namada q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(namada status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"

Signing info

namada q slashing signing-info $(namada tendermint show-validator)

Governance

Title
Description
Deposit, tnam

Create New Text Proposal

namada  tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000tnam \
--type Text \
--from $WALLET \
 \
-y 

Proposals List

namada query gov proposals
Proposal ID
Proposal option

View proposal

namada query gov proposal 1

Vote

namada tx gov vote 1 yes --from $WALLET --chain-id namada.5f5de2dd1b88cba30586420   -y