Monkey Labs Services
  • Services Mainnet
    • Mantra
  • Services Testnet
    • Fiamma
      • 🌪️Installation
      • Upgrade
      • Snapshot
      • Useful commands
    • Mantra
      • Installation
      • Upgrade
      • Snapshot
      • State sync
      • Useful commands
      • Peers -> Seeds -> Addrbook
    • Nillion
      • Installation
      • Upgrade
      • Snapshot
      • State sync
      • Peers -> Seeds -> Addrbook
      • Useful commands
    • Prysm
      • Installation
      • Upgrade
      • Snapshot
      • State sync
      • Peers -> Seeds -> Addrbook
      • Useful commands
    • Pryzm
      • Installation
      • Upgrade
      • Snapshot
      • State sync
      • Useful commands
    • Titan Network
      • Installation
      • Upgrade
      • Snapshot
      • State sync
      • Peers -> Seeds -> Addrbook
      • Useful commands
    • Zenrock
      • Installation
      • Upgrade
      • Snapshot
      • State sync
      • Peers -> Seeds -> Addrbook
      • Useful commands
    • Xrpd
      • Installation
      • Upgrade
      • Snapshot
      • State sync
      • Peers -> Seeds -> Addrbook
      • Useful commands
Powered by GitBook
On this page
  • Service operations ⚙️
  • Key management
  • Tokens
  • Validator operations
  • Governance
  1. Services Testnet
  2. Zenrock

Useful commands

Service operations ⚙️

Check logs

sudo journalctl -u zenrockd -f

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

Reload services

sudo systemctl daemon-reload

Enable Service

sudo systemctl enable zenrockd

Disable Service

sudo systemctl disable zenrockd

Sync info

zenrockd status 2>&1 | jq .SyncInfo

Node info

zenrockd status 2>&1 | jq .NodeInfo

Your node peer

echo $(zenrockd tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.zenrockd/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 $(zenrockd keys show $WALLET -a)

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

Tokens

To valoper addressTo wallet addressAmount, urock

Withdraw all rewards

zenrockd tx distribution withdraw-all-rewards --from $WALLET --chain-id gardia-2 --gas auto --gas-adjustment 1.5 --fees 1000urock

Withdraw rewards and commission from your validator

zenrockd tx distribution withdraw-rewards $VALOPER_ADDRESS_zenrock --from $WALLET --commission --chain-id gardia-2 --gas auto --gas-adjustment 1.5 --fees 1000urock -y

Check your balance

zenrockd query bank balances $WALLET_ADDRESS_zenrock

Delegate to Yourself

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

Delegate

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

Redelegate Stake to Another Validator

zenrockd tx staking redelegate $VALOPER_ADDRESS_zenrock <TO_VALOPER_ADDRESS> 1000000urock --from $WALLET --chain-id gardia-2 --gas auto --gas-adjustment 1.5 --fees 1000urock -y

Unbond

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

Transfer Funds

zenrockd tx bank send $WALLET_ADDRESS_zenrock <TO_WALLET_ADDRESS> 1000000urock --gas auto --gas-adjustment 1.5 --fees 1000urock -y

Validator operations

MonikerIdentityDetailsAmount, urockCommission rateCommission max rateCommission max change rate

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-2 \
--gas auto --gas-adjustment 1.5 --fees 1000urock \
-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-2 \
--gas auto --gas-adjustment 1.5 --fees 1000urock \
-y

Validator info

zenrockd status 2>&1 | jq .ValidatorInfo

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-2 --gas auto --gas-adjustment 1.5 --fees 1000urock -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_zenrock -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)

Governance

TitleDescriptionDeposit, urock

Create New Text Proposal

zenrockd  tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000urock \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 --fees 1000urock \
-y 

Proposals List

zenrockd query gov proposals

Proposal IDProposal optionYesNoNo with vetoAbstain

View proposal

zenrockd query gov proposal 1

Vote

zenrockd tx gov vote 1 yes --from $WALLET --chain-id gardia-2  --gas auto --gas-adjustment 1.5 --fees 1000urock -y
PreviousPeers -> Seeds -> AddrbookNextXrpd

Last updated 4 months ago