Useful Commands
Service Management
Reload service configuration
sudo systemctl daemon-reloadEnable service
sudo systemctl enable dymdDisable service
sudo systemctl disable dymdStart service
sudo systemctl start dymdStop service
sudo systemctl stop dymdRestart service
sudo systemctl restart dymdCheck service status
sudo systemctl status dymdCheck service logs
sudo journalctl -u dymd -fKey management
Add New Wallet
dymd keys add walletRestore executing wallet
dymd keys add wallet --recoverList All Wallets
dymd keys listDelete wallet
dymd keys delete walletCheck Balance
dymd q bank balances $(dymd keys show wallet -a)Export key to a file
dymd keys export walletView EVM Prived Key
dymd keys unsafe-export-eth-key walletImport key from a file
dymd keys import wallet wallet.backupToken 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 -yWithdraw 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 -yDelegate 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 -yDelegate 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 -yRedelegate 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 -yUnbond 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 -ySend 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 -yValidator 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 \
-yValidator info
dymd status 2>&1 | jqValidator 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 -yDelete 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