Testnet Networks
Cheat Sheet

Service operations ⚙️

Check logs

sudo journalctl -u zenrockd -fo cat

Check service status

sudo systemctl status zenrockd

Start service

sudo systemctl start zenrockd

Reload service

sudo systemctl daemon-reload

Stop service

sudo systemctl stop zenrockd

Enable Service

sudo systemctl enable zenrockd

Restart service

sudo systemctl restart zenrockd

Disable Service

sudo systemctl disable zenrockd

Node Info

zenrockd status 2>&1 | jq

Your node peer

echo $(zenrockd tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.zrchain/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')

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 Prived Key

zenrockd keys unsafe-export-eth-key $WALLET

Import Key (restore from wallet.backup)

zenrockd keys import $WALLET wallet.backup

Withdraw all rewards

zenrockd tx distribution withdraw-all-rewards --from $WALLET --chain-id gardia-9 --fees 500000urock 

Withdraw rewards and commission from your validator

zenrockd tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id gardia-9 --fees 500000urock -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 --fees 500000urock -y 

Delegate

zenrockd tx staking delegate <TO_VALOPER_ADDRESS> 1000000urock --from $WALLET --chain-id gardia-9 --fees 500000urock -y 	

Redelegate Stake to Another Validator

zenrockd tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000urock --from $WALLET --chain-id gardia-9 --fees 500000urock -y 

Unbond

zenrockd tx staking unbond $(zenrockd keys show $WALLET --bech val -a) 1000000urock --from $WALLET --chain-id gardia-9 --fees 500000urock -y 

Transfer Funds

zenrockd tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000urock --fees 500000urock -y 

Create New Validator

zenrockd tx staking create-validator \
--amount 1000000urock \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(zenrockd tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--chain-id gardia-9 \
--fees 500000urock \
-y 

Edit Existing Validator

zenrockd tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--from $WALLET \
--chain-id gardia-9 \
--fees 500000urock \
-y 

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 --fees 500000urock -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) 

Create New Proposal

zenrockd  tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000urock \
--type Text \
--from $WALLET \
--fees 500000urock \
-y 
 

Proposals List

zenrockd query gov proposals 
Proposal ID
```bash copy
1

View proposal

zenrockd query gov proposal 1 

Yes

zenrockd tx gov vote 1 yes --from $WALLET --chain-id gardia-9  --fees 500000urock -y 

No

zenrockd tx gov vote 1 no --from $WALLET --chain-id gardia-9  --fees 500000urock -y  

No With vote

zenrockd tx gov vote 1 no_with_veto --from $WALLET --chain-id gardia-9  --fees 500000urock -y 

Abastain

zenrockd tx gov vote 1 abstain --from $WALLET --chain-id gardia-9  --fees 500000urock -y