Service operations ⚙️
Check logs
sudo journalctl -u zenrockd -fo catCheck service status
sudo systemctl status zenrockdStart service
sudo systemctl start zenrockdReload service
sudo systemctl daemon-reloadStop service
sudo systemctl stop zenrockdEnable Service
sudo systemctl enable zenrockdRestart service
sudo systemctl restart zenrockdDisable Service
sudo systemctl disable zenrockdNode Info
zenrockd status 2>&1 | jqYour 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 $WALLETRestore executing wallet
zenrockd keys add $WALLET --recoverList All Wallets
zenrockd keys listDelete wallet
zenrockd keys delete $WALLETCheck Balance
zenrockd q bank balances $WALLET_ADDRESS Export Key (save to wallet.backup)
zenrockd keys export $WALLETView EVM Prived Key
zenrockd keys unsafe-export-eth-key $WALLETImport Key (restore from wallet.backup)
zenrockd keys import $WALLET wallet.backupWithdraw 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_ADDRESSDelegate 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 | jqValidator 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
1View 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