Useful Commands/
mainnet/
dymension

Rpc status: Active

Service operations

#check logs
sudo journalctl -u dymd -f

#start service
sudo systemctl start dymd

#stop service
sudo systemctl stop dymd

#restart service
sudo systemctl restart dymd

#service status
sudo systemctl status dymd

#enable service
sudo systemctl enable dymd

#disable service
sudo systemctl disable dymd

#reload all service files
sudo systemctl daemon-reload

#get node info
dymd status 2>&1 | jq -r

#get node id
dymd tendermint show-node-id

Key management

#add new wallet
dymd keys add <wallet-name>

#restore existing wallet
dymd keys add <wallet-name> --recover

#delete wallet
dymd keys delete <wallet-name>

#list all wallets
dymd keys list

#check balance
dymd q bank balances <wallet-address>

Tokens operations

#withdraw all rewards
dymd tx distribution withdraw-all-rewards --from <wallet-name> --chain-id dymension_1100-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000adym --node "https://rpc.dymension.mainnet.dteam.tech:443" -y

#withdraw rewards from specific validator
dymd tx distribution withdraw-rewards <validator-valoper-address> --from <wallet-name> --chain-id dymension_1100-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000adym --node "https://rpc.dymension.mainnet.dteam.tech:443" -y

#delegate
dymd tx staking delegate <validator-valoper-address> ${10**network.other.denom_exponent}adym --from <wallet-name> --chain-id dymension_1100-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000adym --node "https://rpc.dymension.mainnet.dteam.tech:443" -y

#redelegate
dymd tx staking redelegate <from-validator-valoper-address> <to-validator-valoper-address> ${10**network.other.denom_exponent}adym --from <wallet-name> --chain-id dymension_1100-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000adym --node "https://rpc.dymension.mainnet.dteam.tech:443" -y

#unbond
dymd tx staking unbond <validator-valoper-address> ${10**network.other.denom_exponent}adym --from <wallet-name> --chain-id dymension_1100-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000adym --node "https://rpc.dymension.mainnet.dteam.tech:443" -y

#transfer
dymd tx bank send <wallet-name> <wallet-address> ${10**network.other.denom_exponent}adym --chain-id dymension_1100-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000adym --node "https://rpc.dymension.mainnet.dteam.tech:443" -y

Governance operations

#vote "yes"
dymd tx gov vote <proposal-id> yes --from <wallet-name> --chain-id dymension_1100-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000adym --node "https://rpc.dymension.mainnet.dteam.tech:443" -y

#vote "no"
dymd tx gov vote <proposal-id> no --from <wallet-name> --chain-id dymension_1100-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000adym --node "https://rpc.dymension.mainnet.dteam.tech:443" -y

#vote "no with veto"
dymd tx gov vote <proposal-id> no_with_veto --from <wallet-name> --chain-id dymension_1100-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000adym --node "https://rpc.dymension.mainnet.dteam.tech:443" -y

#vote "abstain"
dymd tx gov vote <proposal-id> abstain --from <wallet-name> --chain-id dymension_1100-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000adym --node "https://rpc.dymension.mainnet.dteam.tech:443" -y

#view all proposals
dymd query gov proposals

#view proposal by ID
dymd query gov proposal <proposal-id>

Validator operations

#create validator
dymd tx staking create-validator \
--amount 1000000adym \
--moniker "" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--pubkey $(dymd tendermint show-validator) \
--commission-rate 0.05 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--chain-id dymension_1100-1 \
--from <wallet-name> \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 5000000000adym \
--node "https://rpc.dymension.mainnet.dteam.tech:443" \
-y

#edit validator
dymd tx staking edit-validator \
--new-moniker "" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--commission-rate 0.05 \
--chain-id dymension_1100-1 \
--from <wallet-name> \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 5000000000adym \
--node "https://rpc.dymension.mainnet.dteam.tech:443" \
-y

#unjail validator
dymd tx slashing unjail --from <wallet-name> --chain-id dymension_1100-1 --gas auto --gas-adjustment 1.5 --gas-prices 5000000000adym --node "https://rpc.dymension.mainnet.dteam.tech:443" -y