Useful Commands/
mainnet/
c4e

mainnet
Rpc status: Active

Service operations

#check logs
sudo journalctl -u c4ed -f

#start service
sudo systemctl start c4ed

#stop service
sudo systemctl stop c4ed

#restart service
sudo systemctl restart c4ed

#service status
sudo systemctl status c4ed

#enable service
sudo systemctl enable c4ed

#disable service
sudo systemctl disable c4ed

#reload all service files
sudo systemctl daemon-reload

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

#get node id
c4ed tendermint show-node-id

Key management

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

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

#delete wallet
c4ed keys delete <wallet-name>

#list all wallets
c4ed keys list

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

Tokens operations

#withdraw all rewards
c4ed tx distribution withdraw-all-rewards --from <wallet-name> --chain-id perun-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uc4e --node "https://rpc.c4e.mainnet.dteam.tech:443" -y

#withdraw rewards from specific validator
c4ed tx distribution withdraw-rewards <validator-valoper-address> --from <wallet-name> --chain-id perun-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uc4e --node "https://rpc.c4e.mainnet.dteam.tech:443" -y

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

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

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

#transfer
c4ed tx bank send <wallet-name> <wallet-address> ${10**network.other.denom_exponent}uc4e --chain-id perun-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uc4e --node "https://rpc.c4e.mainnet.dteam.tech:443" -y

Governance operations

#vote "yes"
c4ed tx gov vote <proposal-id> yes --from <wallet-name> --chain-id perun-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uc4e --node "https://rpc.c4e.mainnet.dteam.tech:443" -y

#vote "no"
c4ed tx gov vote <proposal-id> no --from <wallet-name> --chain-id perun-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uc4e --node "https://rpc.c4e.mainnet.dteam.tech:443" -y

#vote "no with veto"
c4ed tx gov vote <proposal-id> no_with_veto --from <wallet-name> --chain-id perun-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uc4e --node "https://rpc.c4e.mainnet.dteam.tech:443" -y

#vote "abstain"
c4ed tx gov vote <proposal-id> abstain --from <wallet-name> --chain-id perun-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uc4e --node "https://rpc.c4e.mainnet.dteam.tech:443" -y

#view all proposals
c4ed query gov proposals

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

Validator operations

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

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

#unjail validator
c4ed tx slashing unjail --from <wallet-name> --chain-id perun-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uc4e --node "https://rpc.c4e.mainnet.dteam.tech:443" -y