Useful commands

📌 Service Operations

Check logs

sudo journalctl -u wardend -fo cat

Start service

sudo systemctl start wardend

Stop service

sudo systemctl stop wardend

Restart service

sudo systemctl restart wardend

Check service status

sudo systemctl status wardend

Reload systemd

sudo systemctl daemon-reload

Enable service (auto-start)

sudo systemctl enable wardend

Disable service

sudo systemctl disable wardend

📡 Node Information

Node status

wardend status 2>&1 | jq

🔑 Wallet Management

Add a new wallet

wardend keys add $WALLET

Recover a wallet

wardend keys add $WALLET --recover

List all wallets

wardend keys list

Delete a wallet

wardend keys delete $WALLET

Check wallet balance

wardend q bank balances $WALLET_ADDRESS

Export wallet key

wardend keys export $WALLET > wallet.backup

View EVM private key

wardend keys unsafe-export-eth-key $WALLET

Import key from backup

wardend keys import $WALLET wallet.backup

💰 Tokens / Staking Operations

Withdraw all rewards

wardend tx distribution withdraw-all-rewards \
  --from $WALLET \
  --chain-id warden_8765-1 \
  --gas auto --gas-adjustment 1.6 \
  --fees 250000000000000award -y

Withdraw rewards + commission

wardend tx distribution withdraw-rewards $VALOPER_ADDRESS \
  --commission \
  --from $WALLET \
  --chain-id warden_8765-1 \
  --gas auto --gas-adjustment 1.6 \
  --fees 250000000000000award -y

Delegate to your own validator

wardend tx staking delegate \
  $(wardend keys show $WALLET --bech val -a) \
  1000000award \
  --from $WALLET \
  --chain-id warden_8765-1 \
  --gas auto --gas-adjustment 1.6 \
  --fees 250000000000000award -y

Delegate to another validator

wardend tx staking delegate <TO_VALOPER_ADDRESS> \
  1000000award \
  --from $WALLET \
  --chain-id warden_8765-1 \
  --gas auto --gas-adjustment 1.6 \
  --fees 250000000000000award -y

Redelegate stake

wardend tx staking redelegate \
  $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> \
  1000000award \
  --from $WALLET \
  --chain-id warden_8765-1 \
  --gas auto --gas-adjustment 1.6 \
  --fees 250000000000000award -y

Unbond stake

wardend tx staking unbond \
  $(wardend keys show $WALLET --bech val -a) \
  1000000award \
  --from $WALLET \
  --chain-id warden_8765-1 \
  --gas auto --gas-adjustment 1.6 \
  --fees 250000000000000award -y

Send tokens

wardend tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> \
  1000000award \
  --gas auto --gas-adjustment 1.6 \
  --fees 250000000000000award -y

🧱 Validator Operations

Create a new validator

wardend tx staking create-validator \
  --amount 1000000award \
  --from $WALLET \
  --commission-rate 0.1 \
  --commission-max-rate 0.2 \
  --commission-max-change-rate 0.01 \
  --min-self-delegation 1 \
  --pubkey $(wardend tendermint show-validator) \
  --moniker "$MONIKER" \
  --identity "xxxxxxxxx" \
  --details "xxxxxxxxxx" \
  --chain-id warden_8765-1 \
  --gas auto --gas-adjustment 1.6 \
  --fees 250000000000000award \
  -y

Edit your validator

wardend tx staking edit-validator \
  --commission-rate 0.1 \
  --new-moniker "$MONIKER" \
  --identity "xxxxxxxxxxx" \
  --details "xxxxxxxxxxxx" \
  --from $WALLET \
  --chain-id warden_8765-1 \
  --gas auto --gas-adjustment 1.6 \
  --fees 250000000000000award \
  -y

📋 Validator Status

Get validator details

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

Check jailing info

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

Slashing parameters

wardend q slashing params

Unjail validator

wardend tx slashing unjail \
  --from $WALLET \
  --chain-id warden_8765-1 \
  --gas auto --gas-adjustment 1.6 \
  --fees 250000000000000award -y

Active validators list

wardend 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

Verify validator consensus key

[[ $(wardend q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = \
$(wardend status | jq -r .ValidatorInfo.PubKey.value) ]] \
&& echo "Your key status is OK" \
|| echo "Your key status is ERROR"

🗳 Governance

Vote on proposal

wardend tx gov vote 1 yes \
  --from $WALLET \
  --chain-id warden_8765-1 \
  --gas auto --gas-adjustment 1.6 \
  --fees 250000000000000award -y

Last updated