Chain ID: dymension_1100-1
| Current Node Version: v3.1.0
This cheatsheet collects commonly used CLI commands for node operators to easily copy and paste. A few conventions we follow:
- Capitalized words indicate placeholders
- Always use our own [NODERS]TEAM RPC endpoints
- Always specify
--chain-id
and--node
flags even when they are unnecessary - Query CLI command always uses
--output json
flag and pipes result throughjq
Wallet generate and recover
Add new key
dymd keys add KEY
Recover key (via existing mnemonic)
dymd keys add KEY --recover
List all keys
dymd keys list
Delete key
dymd keys delete KEY
Wallet
Wallet balance
dymd q bank balances $(dymd keys show KEY -a) --node https://dymension-rpc.noders.services:443
Send
dymd tx bank send YOUR_KEY RECEIVER_ADDRESS 1000000adym \
--chain-id dymension_1100-1 \
--node https://dymension-rpc.noders.services:443 --fees 300000000adym \
--from KEY
Withdraw rewards from all validators
dymd tx distribution withdraw-all-rewards \
--chain-id dymension_1100-1 \
--node https://dymension-rpc.noders.services:443 --fees 300000000adym \
--from KEY
Withdraw Rewards including Commission
dymd tx distribution withdraw-rewards VALIDATOR_ADRESS \
--commission \
--chain-id dymension_1100-1 \
--node https://dymension-rpc.noders.services:443 --fees 300000000adym \
--from KEY
Delegate tokens to yourself
dymd tx staking delegate $(dymd keys show KEY --bech val -a) 1000000adym \
--chain-id dymension_1100-1 \
--node https://dymension-rpc.noders.services:443 --fees 300000000adym \
--from KEY
Delegate tokens to validator
dymd tx staking delegate VALIDATOR_ADDRESS 1000000adym \
--chain-id dymension_1100-1 \
--node https://dymension-rpc.noders.services:443 --fees 300000000adym \
--from KEY
Redelegate tokens to another validator
dymd tx staking redelegate $(dymd keys show KEY --bech val -a) VALIDATOR_ADDRESS 1000000adym \
--chain-id dymension_1100-1 \
--node https://dymension-rpc.noders.services:443 --fees 300000000adym \
--from KEY
Unbond tokens from your validator
dymd tx staking unbond $(dymd keys show KEY --bech val -a) adym \
--chain-id andromeda-1 \
--node https://dymension-rpc.noders.services:443 --fees 300000000adym \
--from KEY
Governance
List of all proposals
dymd query gov proposals --node https://dymension-rpc.noders.services:443
Check vote
dymd query gov proposal PROPOSAL_NUMBER \
--chain-id dymension_1100-1 \
--node https://dymension-rpc.noders.services:443 --fees 300000000adym \
--output json | jq
Vote
Vote options:
- yes
- no
- no_with_veto
- abstain
dymd tx gov vote PROPOSAL_NUMBER VOTE_OPTION \
--chain-id dymension_1100-1 \
--node https://dymension-rpc.noders.services:443 --fees 300000000adym \
--from KEY
Validator management
Create Validator
note
We use example filed values instead of capitalized dummy words for demo purpose in this command. Please make sure to adjust accordingly for your use.
dymd tx staking create-validator \
--amount 1000000adym \
--commission-max-change-rate "0.05" \
--commission-max-rate "0.10" \
--commission-rate "0.05" \
--min-self-delegation "1" \
--pubkey=$(dymd tendermint show-validator) \
--moniker '[NODERS]TEAM SERVICE' \
--website "https://noders.team" \
--identity "220491ADDD660741" \
--details "Trusted blockchain validator and web3 developer team" \
--security-contact="office@noders.team" \
--chain-id dymension_1100-1 \
--node https://dymension-rpc.noders.services:443 --fees 300000000adym \
--from KEY
Edit 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 KEY \
--node https://dymension-rpc.noders.services:443 --fees 300000000adym \
Unjail
dymd tx slashing unjail \
--chain-id dymension_1100-1 \
--node https://dymension-rpc.noders.services:443 --fees 300000000adym \
--from KEY
Jail reason
dymd query slashing signing-info $(dymd tendermint show-validator)
Validator details
dymd q staking validator $(dymd keys show KEY --bech val -a)
Maintenance
Get validator info
dymd status 2>&1 | jq .ValidatorInfo
Get sync info
dymd status 2>&1 | jq .SyncInfo
Get node peer
echo $(dymd tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat ~/.dymension/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')