Cheatsheets
If you have installed from our guide, you do not need to make any changes in the codes below unless stated otherwise.
Service Operationsβ
Checking Logsβ
journalctl -fu c4ed -o cat
Starting Nodeβ
systemctl start c4ed
Stopping the Nodeβ
systemctl stop c4ed
Restarting the Nodeβ
systemctl restart c4ed
Node Sync Statusβ
c4ed status 2>&1 | jq .SyncInfo
Node Informationβ
c4ed status 2>&1 | jq .NodeInfo
Learning Node IDβ
c4ed tendermint show-node-id
Learning Node IP Addressβ
curl icanhazip.com
Your node peerβ
echo $(c4ed tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.c4e-chain/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Wallet Managementβ
Viewing the List of Walletsβ
c4ed keys list
Seeing Wallet Addressβ
c4ed keys show $C4E_WALLET --bech val -a
Importing Walletβ
c4ed keys add $C4E_WALLET --recover
Deleting Your Walletβ
c4ed keys delete $C4E_WALLET
Checking Wallet Balanceβ
c4ed query bank balances $C4E_WALLET_ADDRESS
Tokensβ
Transferring from One Wallet to Anotherβ
c4ed tx bank send $C4E_WALLET_ADDRESS SENDING_CUZDAN_ADRESI 100000000uc4e
Participating in Proposal Votingβ
c4ed tx gov vote 1 yes --from $C4E_WALLET --chain-id=$C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto -y
Validatore Staking / Delegationβ
c4ed tx staking delegate $C4E_VALOPER_ADDRESS 100000000uc4e --from=$C4E_WALLET --chain-id=$C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto -y
Unbondingβ
c4ed tx staking unbond $(c4ed keys show $C4E_WALLET --bech val -a) 1000000uc4e --from $C4E_WALLET --chain-id indigo-1 --fees 3000uc4e -y
Staking / Redelegate from Current Validator to Other Validatorβ
srcValidatorAddress
: Address of the current staked validator
destValidatorAddress
: Address of the new validator to be staked
c4ed tx staking redelegate srcValidatorAddress destValidatorAddress 100000000uc4e --from=$C4E_WALLET --chain-id=$C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto -y
Withdraw Rewardsβ
c4ed tx distribution withdraw-all-rewards --from=$C4E_WALLET --chain-id=$C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto -y
Withdrawing Commission Rewardsβ
c4ed tx distribution withdraw-rewards $C4E_VALOPER_ADDRESS --from=$C4E_WALLET --commission --chain-id=$C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto -y
Validator operationsβ
Validator Informationβ
c4ed status 2>&1 | jq .ValidatorInfo
Changing Validator Nameβ
Write your new validator/moniker name where it says 'NEW-NODE-NAME'. It should not contain TR characters.
c4ed tx staking edit-validator \
--new-moniker=NEW-NODE-NAME \
--chain-id=$C4E_CHAIN_ID\
--from=$C4E_WALLET \
--gas-prices 0.00001uc4e \
--gas-adjustment 1.5 \
--gas auto -y
Changing Validator Commission Rateβ
We change the value in the section that says 'commission-rate'.
c4ed tx staking edit-validator --commission-rate "0.02" --moniker=$C4E_NODENAME --from $C4E_WALLET --chain-id $C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto - y
Editing Your Validator Informationβ
Before changing this information, you must register at https://keybase.io/ and receive your 16-digit code (XXXX0000XXXX0000) as seen in the code below. Also profile picture etc. You can also adjust the settings.
$C4E_NODENAME
and $C4E_WALLET
: Your Validator (Moniker) and wallet name, you do not need to change it. Because we added it to variables.
c4ed tx staking edit-validator \
--moniker=$C4E_NODENAME \
--identity=XXXX0000XXXX0000\
--website="YOU CAN WRITE YOUR WEBSITE IF YOU EXIST" \
--details="YOU CAN WRITE A SENTENCE INTRODUCING YOURSELF IN THIS SECTION" \
--chain-id=$C4E_CHAIN_ID\
--from=$C4E_WALLET
Validator Detailsβ
c4ed q staking validator $(c4ed keys show $C4E_WALLET --bech val -a)
Jailing infoβ
c4ed q slashing signing-info $(c4ed tendermint show-validator)
Slashing parametersβ
c4ed q slashing params
Recovering Validator from Jailβ
c4ed tx slashing unjail --from $C4E_WALLET --chain-id $C4E_CHAIN_ID --gas-prices 0.00001uc4e --gas-adjustment 1.5 --gas auto -y
Active Validators Listβ
c4ed q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
Checking Validator keyβ
[[ $(c4ed q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(c4ed status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing infoβ
c4ed q slashing signing-info $(c4ed tendermint show-validator)