Skip to main content

Command

Wallet:

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 $(zenrockd keys show wallet -a)

Validator:

Create Validator:

  • Show pub key:

zenrockd tendermint show-validator

  • Create validator.json
zenrockd tx validation create-validator <(cat <<EOF
{
"pubkey": $(zenrockd comet show-validator),
"amount": "1000000urock",
"moniker": "Node39-Guide",
"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.4 \
--gas auto \
--gas-prices 2.5urock \
-y
`

Check sync | False -> done.

zenrockd status 2>&1 | jq .SyncInfo.catching_up

Delegate:

zenrockd tx staking delegate $(zenrockd keys show wallet --bech val -a) 1000000urock \
--from wallet \
--chain-id=diamond-1 \
--fees 2000urock \
--gas auto \
--gas-adjustment 1.2 \
--node=https://zenrock-rpc.node39.top:443 \
-y

Withdraw rewards and commission:

zenrockd tx distribution withdraw-rewards $(zenrockd keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id=diamond-1 \
--gas auto \
--gas-adjustment 1.2 \
--fees 2000urock \
--node=https://zenrock-rpc.node39.top:443 \
-y

Unjail:

--from wallet \
--chain-id=diamond-1 \
--gas auto \
--gas-adjustment 1.2 \
--fees 2000urock \
--node=https://zenrock-rpc.node39.top:443 \
-y

Unbond:

zenrockd tx staking unbond $(zenrockd keys show wallet --bech val -a) 1000000urock \
--from wallet \
--chain-id=diamond-1 \
--gas auto \
--gas-adjustment 1.5 \
--fees 2000urock \
--node=https://zenrock-rpc.node39.top:443 \
-y

Vote:

yes/no/no_with_veto/abstain

zenrockd tx gov vote 1 yes \
--from wallet \
--chain-id diamond-1 \
--gas auto \
--gas-adjustment 1.2 \
--fees 2000urock \
--node=https://zenrock-rpc.node39.top:443 \
-y

System:

Reload Service:

sudo systemctl daemon-reload

Enable Service:

sudo systemctl enable zenrockd

Disable Service:

sudo systemctl disable zenrockd

Start Service:

sudo systemctl start zenrockd

Stop Service:

sudo systemctl stop zenrockd

Restart Service:

sudo systemctl restart zenrockd

Check Service Status:

sudo systemctl status zenrockd

Check Service Logs:

sudo journalctl -u zenrockd -fo cat