Useful commands
List of commands used to manage the validator and node
Wallet interaction
Create Wallet
dymd keys add <WALLET_NAME>
Restore wallet
dymd keys add <WALLET_NAME> --recover
Show all wallets
Delete wallet
dymd keys delete <WALLET_NAME>
Export wallet
dymd keys export <WALLET_NAME>
Import wallet
dymd keys import <WALLET_NAME> <WALLET_NAME>.backup
Show balance
dymd q bank balances $(dymd keys show <WALLET_NAME> -a)
Validator control
Create a validator
dymd tx staking create-validator \
--amount 1000000000000000000adym \
--pubkey $(dymd tendermint show-validator) \
--moniker "<YOUR_MONIKER>" \
--identity "<YOUR_KEYBASE_ID>" \
--details "<YOUR_DETAILS>" \
--website "<YOUR_WEBSITE_URL>" \
--chain-id dymension_1100-1 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from <WALLET_NAME> \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 5000000000adym - y
Edit validator
dymd tx staking edit-validator \
--new-moniker="<YOUR_MONIKER>" \
--identity=<YOUR MONIKER> \
--details="<YOUR_DETAILS>" \
--chain-id dymension_1100-1 \
--commission-rate=0.1 \
--from=<WALLET_NAME> \
--gas-prices=5000000000adym \
--gas-adjustment=1.5 \
--gas=auto \
-y
Unjail
dymd tx slashing unjail --from <WALLET_NAME> --fees 5000000000adym --gas 256000 -y
Jail reason
dymd q slashing signing-info $(dymd tendermint show-validator)
Active validators
dymd q staking validators -o json --limit=1000 \| jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' \| jq -r '.tokens + " - " + .description.moniker' \| sort -gr | nl
Inactive validators
dymd q staking validators -o json --limit=1000 \| jq '.validators[] | select(.status=="BOND_STATUS_UNBONDED")' \| jq -r '.tokens + " - " + .description.moniker' \| sort -gr | nl
Information about the validator
dymd q staking validator $(dymd keys show <WALLET_NAME> --bech val -a)
Balance management
Withdrawal of all rewards
dymd tx distribution withdraw-all-rewards --from <WALLET_NAME> --fees 5000000000adym --gas 256000 --chain-id dymension_1100-1 -y
Withdrawal of rewards and commissions
dymd tx distribution withdraw-rewards <WALLET_NAME> --from <WALLET_NAME> --fees 5000000000adym --gas 256000 --chain-id dymension_1100-1 --commission -y
Self-delegation
dymd tx staking delegate <TO_VALOPER_ADDRESS> 1000000000000000000adym --from <WALLET_NAME> --fees 5000000000adym --gas 256000 --chain-id dymension_1100-1 -y
Delegation to validator
dymd tx staking delegate <WALLET_NAME> <TO_VALOPER_ADDRESS> 1000000aarch --from <WALLET_NAME> --fees 5000000000adym --gas 256000 --chain-id dymension_1100-1 -y
Redelegation to another validator
dymd tx staking redelegate <WALLET_NAME> <TO_VALOPER_ADDRESS> 1000000000000000000adym --from <WALLET_NAME> --fees 5000000000adym --gas 256000 --chain-id dymension_1100-1 -y
Unbond tokens
dymd tx staking unbond <WALLET_NAME> 1000000000000000000adym --from <WALLET_NAME> --fees 5000000000adym --gas 256000 --chain-id dymension_1100-1 -y
Sending tokens to a wallet
dymd tx bank send <WALLET_NAME> <TO_WALLET_ADDRESS> 1000000000000000000adym --fees 5000000000adym --gas 256000 --chain-id dymension_1100-1 -y
Governance
All proposals
dymd query gov proposals
All proposals by ID
dymd query gov proposal 1
Vote "YES"
dymd tx gov vote 1 yes --from <WALLET_NAME> --fees 5000000000adym --chain-id dymension_1100-1
Vote "NO"
dymd tx gov vote 1 no --from <WALLET_NAME> --fees 5000000000adym --chain-id dymension_1100-1
Vote "Abstain"
dymd tx gov vote 1 abstain --from <WALLET_NAME> --fees 5000000000adym --chain-id dymension_1100-1
Vote "NoWithVeto"
dymd tx gov vote 1 no_with_veto --from <WALLET_NAME> --fees 5000000000adym --chain-id dymension_1100-1
Utility
Disable Indexer
sed -i -e 's|^indexer *=.*|indexer = "null"|' $HOME/.dymension/config/config.toml
Enable Indexer
sed -i -e 's|^indexer *=.*|indexer = "kv"|' $HOME/.dymension/config/config.toml
Update pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
$HOME/.dymension/config/app.toml
Node support
Validator Info
dymd status 2>&1 | jq .ValidatorInfo
Sync info
dymd status 2>&1 | jq .SyncInfo.catching_up
Deleting a node
Before deleting a node make sure you save priv_validator_key.json
systemctl stop dymd
systemctl disable dymd
rm /etc/systemd/system/dymd.service
systemctl daemon-reload
cd $HOME
rm -rf .dymension dymd
rm -rf $(which dymd)
Service setup
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 --no-hostname -o cat
Last updated