Skip to content

📑 Zenrock Cheat Sheet

🔧 Service Operations

Check logs

sudo journalctl -u zenrockd -fo cat

Check service status

sudo systemctl status zenrockd

Node info

zenrockd status 2>&1 | jq

Start service

sudo systemctl start zenrockd

Stop service

sudo systemctl stop zenrockd

Restart service

sudo systemctl restart zenrockd

Reload services

sudo systemctl daemon-reload

Enable service

sudo systemctl enable zenrockd

Disable service

sudo systemctl disable zenrockd

🔑 Key Management

Add New Wallet

zenrockd keys add $WALLET

Restore executing wallet

zenrockd keys add $WALLET --recover

List All Wallets

zenrockd keys list

Delete wallet

zenrockd keys delete $WALLET

Check Balance

zenrockd q bank balances $WALLET_ADDRESS

Export Key (save to wallet.backup)

zenrockd keys export $WALLET

View EVM Private Key

zenrockd keys unsafe-export-eth-key $WALLET

Import Key (restore from wallet.backup)

zenrockd keys import $WALLET wallet.backup

💰 Tokens

Withdraw all rewards

zenrockd tx distribution withdraw-all-rewards --from $WALLET --chain-id gardia-9 --fees --gas auto --gas-adjustment 1.5 --fees 30urock -y

Withdraw rewards and commission from your validator

zenrockd tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id gardia-9 --gas auto --gas-adjustment 1.5 --fees 30urock -y

Check your balance

zenrockd query bank balances $WALLET_ADDRESS

Delegate to Yourself

zenrockd tx staking delegate $(zenrockd keys show $WALLET --bech val -a) 1000000urock --from $WALLET --chain-id gardia-9 --gas auto --gas-adjustment 1.5 --fees 30urock -y

Delegate

zenrockd tx staking delegate <TO_VALOPER_ADDRESS> 1000000urock --from $WALLET --chain-id gardia-9 --gas auto --gas-adjustment 1.5 --fees 30urock -y

Redelegate Stake to Another Validator

zenrockd tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000urock --from $WALLET --chain-id gardia-9 --gas auto --gas-adjustment 1.5 --fees 30urock -y

Unbond

zenrockd tx staking unbond $(zenrockd keys show $WALLET --bech val -a) 1000000urock --from $WALLET --chain-id gardia-9 --gas auto --gas-adjustment 1.5 --fees 30urock -y

Transfer Funds

zenrockd tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000urock --from $WALLET --chain-id gardia-9 --gas auto --gas-adjustment 1.5 --fees 30urock -y

🛡️ Validator Operations

Validator info

zenrockd status 2>&1 | jq

Validator Details

zenrockd q staking validator $(zenrockd keys show $WALLET --bech val -a)

Jailing info

zenrockd q slashing signing-info $(zenrockd tendermint show-validator)

Slashing parameters

zenrockd q slashing params

Unjail validator

zenrockd tx slashing unjail --from $WALLET --chain-id gardia-9 --gas auto --gas-adjustment 1.5 --fees 30urock -y

Active Validators List

zenrockd 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

Check Validator key

[[ $(zenrockd q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(zenrockd status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"

Signing info

zenrockd q slashing signing-info $(zenrockd tendermint show-validator)

Edit Validator

zenrockd tx staking edit-validator \
--commission-rate 0.05 \
--new-moniker "$MONIKER" \
--identity "" \
--details "Kyronode for all" \
--from $WALLET \
--chain-id gardia-9 \
--gas auto \
--gas-adjustment 1.5 \
--fees 30urock \
-y

🏛 Governance

Proposals List

zenrockd query gov proposals

View proposal

zenrockd query gov proposal 1

Vote

zenrockd tx gov vote 1 yes --from $WALLET --chain-id gardia-9 --gas auto --gas-adjustment 1.5 --fees 30urock -y