Useful Commands

Service Management

Reload service configuration

sudo systemctl daemon-reload

Enable service

sudo systemctl enable dymd

Disable service

sudo systemctl disable dymd

Start service

sudo systemctl start dymd

Stop service

sudo systemctl stop dymd

Restart service

sudo systemctl restart dymd

Check service status

sudo systemctl status dymd

Check service logs

sudo journalctl -u dymd -f

Key management

Add New Wallet

dymd keys add wallet

Restore executing wallet

dymd keys add wallet --recover

List All Wallets

dymd keys list

Delete wallet

dymd keys delete wallet

Check Balance

dymd q bank balances $(dymd keys show wallet -a)

Export key to a file

dymd keys export wallet

View EVM Prived Key

dymd keys unsafe-export-eth-key wallet

Import key from a file

dymd keys import wallet wallet.backup

Token management

Withdraw rewards from all validators

dymd tx distribution withdraw-all-rewards --from wallet --chain-id dymension_1100-1 --gas-adjustment 1.4 --gas auto --gas-prices 20000000000adym -y

Withdraw commission and rewards from your validator

dymd tx distribution withdraw-rewards $(dymd keys show wallet --bech val -a) --commission --from wallet --chain-id dymension_1100-1 --gas-adjustment 1.4 --gas auto --gas-prices 20000000000adym -y

Delegate tokens to yourself

dymd tx staking delegate $(dymd keys show wallet --bech val -a) 1000000adym --from wallet --chain-id dymension_1100-1 --gas-adjustment 1.4 --gas auto --gas-prices 20000000000adym -y

Delegate tokens to validator

dymd tx staking delegate <TO_VALOPER_ADDRESS> 1000000adym --from wallet --chain-id dymension_1100-1 --gas-adjustment 1.4 --gas auto --gas-prices 20000000000adym -y

Redelegate tokens to another validator

dymd tx staking redelegate $(dymd keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000adym --from wallet --chain-id dymension_1100-1 --gas-adjustment 1.4 --gas auto --gas-prices 20000000000adym -y

Unbond tokens from your validator

dymd tx staking unbond $(dymd keys show wallet --bech val -a) 1000000adym --from wallet --chain-id dymension_1100-1 --gas-adjustment 1.4 --gas auto --gas-prices 20000000000adym -y

Send tokens to the wallet

dymd tx bank send wallet <TO_WALLET_ADDRESS> 1000000adym --from wallet --chain-id dymension_1100-1 --gas-adjustment 1.4 --gas auto --gas-prices 20000000000adym -y

Validator operations

Create New Validator

dymd tx staking create-validator <(cat <<EOF
{
  "pubkey": $(dymd comet show-validator),
  "amount": "1000000adym",
  "moniker": "YOUR_MONIKER_NAME",
  "identity": "YOUR_KEYBASE_ID",
  "website": "YOUR_WEBSITE_URL",
  "security": "YOUR_SECURITY_EMAIL",
  "details": "YOUR_DETAILS",
  "commission-rate": "0.05",
  "commission-max-rate": "0.20",
  "commission-max-change-rate": "0.05",
  "min-self-delegation": "1"
}
EOF
) \
--chain-id dymension_1100-1 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 20000000000adym \
-y

Edit Existing Validator

dymd tx staking edit-validator \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id dymension_1100-1 \
--commission-rate 0.05 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 20000000000adym \
-y

Validator info

dymd status 2>&1 | jq

Validator Details

dymd q staking validator $(dymd keys show wallet --bech val -a) 

Jailing info

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

Slashing parameters

dymd q slashing params 

Unjail validator

dymd tx slashing unjail --from wallet --chain-id dymension_1100-1 --gas-adjustment 1.4 --gas auto --gas-prices 20000000000adym -y

Delete node

cd $HOME
sudo systemctl stop dymd
sudo systemctl disable dymd
sudo rm /etc/systemd/system/dymension.service
sudo systemctl daemon-reload
rm -f $(which dymd)
rm -rf $HOME/.dymension
rm -rf $HOME/dymension

Last updated