Check logs
Copy sudo journalctl -u zenrockd -fo cat
Start service
Copy sudo systemctl start zenrockd
Stop service
Copy sudo systemctl stop zenrockd
Restart service
Copy sudo systemctl restart zenrockd
Check service status
Copy sudo systemctl status zenrockd
Reload services
Copy sudo systemctl daemon-reload
Enable Service
Copy sudo systemctl enable zenrockd
Disable Service
Copy sudo systemctl disable zenrockd
Node info
Copy zenrockd status 2>&1 | jq
Your node peer
Copy 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
Copy zenrockd keys add $WALLET
Restore executing wallet
Copy zenrockd keys add $WALLET --recover
List All Wallets
Delete wallet
Copy zenrockd keys delete $WALLET
Check Balance
Copy zenrockd q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
Copy zenrockd keys export $WALLET
View EVM Prived Key
Copy zenrockd keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
Copy zenrockd keys import $WALLET wallet.backup
Tokens
Withdraw all rewards
Copy zenrockd tx distribution withdraw-all-rewards --from $WALLET --chain-id diamond-1 --gas auto --gas-adjustment 1.5 --fees 30urock
Withdraw rewards and commission from your validator
Copy zenrockd tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id diamond-1 --gas auto --gas-adjustment 1.5 --fees 30urock -y
Check your balance
Copy zenrockd query bank balances $WALLET_ADDRESS
Delegate to Yourself
Copy zenrockd tx validation delegate $( zenrockd keys show $WALLET --bech val -a ) 1000000urock --from $WALLET --chain-id diamond-1 --gas auto --gas-adjustment 1.5 --fees 30urock -y
Delegate
Copy zenrockd tx validation delegate < TO_VALOPER_ADDRES S > 1000000urock --from $WALLET --chain-id diamond-1 --gas auto --gas-adjustment 1.5 --fees 30urock -y
Redelegate Stake to Another Validator
Copy zenrockd tx validation redelegate $VALOPER_ADDRESS < TO_VALOPER_ADDRES S > 1000000urock --from $WALLET --chain-id diamond-1 --gas auto --gas-adjustment 1.5 --fees 30urock -y
Unbond
Copy zenrockd tx validation unbond $( zenrockd keys show $WALLET --bech val -a ) 1000000urock --from $WALLET --chain-id diamond-1 --gas auto --gas-adjustment 1.5 --fees 30urock -y
Transfer Funds
Copy zenrockd tx bank send $WALLET_ADDRESS < TO_WALLET_ADDRES S > 1000000urock --gas auto --gas-adjustment 1.5 --fees 30urock -y
Validator operations
Create New Validator
Copy zenrockd tx validation create-validator <( cat << EOF
{
"pubkey": $( zenrockd comet show-validator),
"amount": "1000000urock",
"moniker": "YOUR_MONIKER_NAME",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"security": "YOUR_SECURITY_EMAIL",
"details": "YOUR_DETAILS",
"commission-rate": "0.05",
"commission-max-rate": "0.20",
"commission-max-change-rate": "0.05",
"min-self-delegation": "1"
}
EOF
) \
--chain-id diamond-1 \
--from wallet \
--gas-adjustment 1.5 \
--gas auto \
--gas-prices 30urock \
-y
Edit Existing Validator
Copy zenrockd tx validation edit-validator \
--commission-rate 0.1 \
--new-moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--from $WALLET \
--chain-id diamond-1 \
--gas auto --gas-adjustment 1.5 --fees 30urock \
-y
Validator info
Copy zenrockd status 2>&1 | jq
Validator Details
Copy zenrockd q validation validator $( zenrockd keys show $WALLET --bech val -a )
Jailing info
Copy zenrockd q slashing signing-info $( zenrockd tendermint show-validator )
Slashing parameters
Copy zenrockd q slashing params
Unjail validator
Copy zenrockd tx slashing unjail --from $WALLET --chain-id diamond-1 --gas auto --gas-adjustment 1.5 --fees 30urock -y
Active Validators List
Copy zenrockd q validation 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
Copy [[ $( zenrockd q validation 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
Copy zenrockd q slashing signing-info $( zenrockd tendermint show-validator )
Governance
Copy zenrockd tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000urock \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 --fees 30urock \
-y
Proposals List
Copy zenrockd query gov proposals
View proposal
Copy zenrockd query gov proposal 1
Vote
Copy zenrockd tx gov vote 1 yes --from $WALLET --chain-id diamond-1 --gas auto --gas-adjustment 1.5 --fees 30urock -y