Useful Commands/
mainnet/
canto

mainnet
Rpc status: Active

Service operations

#check logs
sudo journalctl -u cantod -f

#start service
sudo systemctl start cantod

#stop service
sudo systemctl stop cantod

#restart service
sudo systemctl restart cantod

#service status
sudo systemctl status cantod

#enable service
sudo systemctl enable cantod

#disable service
sudo systemctl disable cantod

#reload all service files
sudo systemctl daemon-reload

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

#get node id
cantod tendermint show-node-id

Key management

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

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

#delete wallet
cantod keys delete <wallet-name>

#list all wallets
cantod keys list

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

Tokens operations

#withdraw all rewards
cantod tx distribution withdraw-all-rewards --from <wallet-name> --chain-id canto_7700-1 --gas auto --gas-adjustment 1.5 --gas-prices 2000000000000acanto --node "https://rpc.canto.mainnet.dteam.tech:443" -y

#withdraw rewards from specific validator
cantod tx distribution withdraw-rewards <validator-valoper-address> --from <wallet-name> --chain-id canto_7700-1 --gas auto --gas-adjustment 1.5 --gas-prices 2000000000000acanto --node "https://rpc.canto.mainnet.dteam.tech:443" -y

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

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

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

#transfer
cantod tx bank send <wallet-name> <wallet-address> ${10**network.other.denom_exponent}acanto --chain-id canto_7700-1 --gas auto --gas-adjustment 1.5 --gas-prices 2000000000000acanto --node "https://rpc.canto.mainnet.dteam.tech:443" -y

Governance operations

#vote "yes"
cantod tx gov vote <proposal-id> yes --from <wallet-name> --chain-id canto_7700-1 --gas auto --gas-adjustment 1.5 --gas-prices 2000000000000acanto --node "https://rpc.canto.mainnet.dteam.tech:443" -y

#vote "no"
cantod tx gov vote <proposal-id> no --from <wallet-name> --chain-id canto_7700-1 --gas auto --gas-adjustment 1.5 --gas-prices 2000000000000acanto --node "https://rpc.canto.mainnet.dteam.tech:443" -y

#vote "no with veto"
cantod tx gov vote <proposal-id> no_with_veto --from <wallet-name> --chain-id canto_7700-1 --gas auto --gas-adjustment 1.5 --gas-prices 2000000000000acanto --node "https://rpc.canto.mainnet.dteam.tech:443" -y

#vote "abstain"
cantod tx gov vote <proposal-id> abstain --from <wallet-name> --chain-id canto_7700-1 --gas auto --gas-adjustment 1.5 --gas-prices 2000000000000acanto --node "https://rpc.canto.mainnet.dteam.tech:443" -y

#view all proposals
cantod query gov proposals

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

Validator operations

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

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

#unjail validator
cantod tx slashing unjail --from <wallet-name> --chain-id canto_7700-1 --gas auto --gas-adjustment 1.5 --gas-prices 2000000000000acanto --node "https://rpc.canto.mainnet.dteam.tech:443" -y