Service operations ⚙️
Check logs
sudo journalctl -u zetacored -fo cat
Start service
sudo systemctl start zetacored
Stop service
sudo systemctl stop zetacored
Restart service
sudo systemctl restart zetacored
Check service status
sudo systemctl status zetacored
Reload services
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable zetacored
Disable Service
sudo systemctl disable zetacored
Node info
zetacored status 2>&1 | jq
Your node peer
echo $(zetacored tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.zetacored/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key management
Add New Wallet
zetacored keys add $WALLET
Restore executing wallet
zetacored keys add $WALLET --recover
List All Wallets
zetacored keys list
Delete wallet
zetacored keys delete $WALLET
Check Balance
zetacored q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
zetacored keys export $WALLET
View EVM Prived Key
zetacored keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
zetacored keys import $WALLET wallet.backup
Tokens
To valoper address
To wallet address
Amount, azeta
Withdraw all rewards
zetacored tx distribution withdraw-all-rewards --from $WALLET --chain-id zetachain_7000-1 --gas auto --gas-adjustment 1.5 --fees 2100000000000000azeta
Withdraw rewards and commission from your validator
zetacored tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id zetachain_7000-1 --gas auto --gas-adjustment 1.5 --fees 2100000000000000azeta -y
Check your balance
zetacored query bank balances $WALLET_ADDRESS
Delegate to Yourself
zetacored tx staking delegate $(zetacored keys show $WALLET --bech val -a) 1000000azeta --from $WALLET --chain-id zetachain_7000-1 --gas auto --gas-adjustment 1.5 --fees 2100000000000000azeta -y
Delegate
zetacored tx staking delegate <TO_VALOPER_ADDRESS> 1000000azeta --from $WALLET --chain-id zetachain_7000-1 --gas auto --gas-adjustment 1.5 --fees 2100000000000000azeta -y
Redelegate Stake to Another Validator
zetacored tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000azeta --from $WALLET --chain-id zetachain_7000-1 --gas auto --gas-adjustment 1.5 --fees 2100000000000000azeta -y
Unbond
zetacored tx staking unbond $(zetacored keys show $WALLET --bech val -a) 1000000azeta --from $WALLET --chain-id zetachain_7000-1 --gas auto --gas-adjustment 1.5 --fees 2100000000000000azeta -y
Transfer Funds
zetacored tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000azeta --gas auto --gas-adjustment 1.5 --fees 2100000000000000azeta -y
Validator operations
Moniker
Identity
Details
Amount, azeta
Commission rate
Commission max rate
Commission max change rate
Create New Validator
zetacored tx staking create-validator \
--amount 1000000azeta \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(zetacored tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--chain-id zetachain_7000-1 \
--gas auto --gas-adjustment 1.5 --fees 2100000000000000azeta \
-y
Edit Existing Validator
zetacored tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--from $WALLET \
--chain-id zetachain_7000-1 \
--gas auto --gas-adjustment 1.5 --fees 2100000000000000azeta \
-y
Validator info
zetacored status 2>&1 | jq
Validator Details
zetacored q staking validator $(zetacored keys show $WALLET --bech val -a)
Jailing info
zetacored q slashing signing-info $(zetacored tendermint show-validator)
Slashing parameters
zetacored q slashing params
Unjail validator
zetacored tx slashing unjail --from $WALLET --chain-id zetachain_7000-1 --gas auto --gas-adjustment 1.5 --fees 2100000000000000azeta -y
Active Validators List
zetacored 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
[[ $(zetacored q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(zetacored status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
zetacored q slashing signing-info $(zetacored tendermint show-validator)
Governance
Title
Description
Deposit, azeta
Create New Text Proposal
zetacored tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000azeta \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 --fees 2100000000000000azeta \
-y
Proposals List
zetacored query gov proposals
Proposal ID
Proposal option
View proposal
zetacored query gov proposal 1
Vote
zetacored tx gov vote 1 yes --from $WALLET --chain-id zetachain_7000-1 --gas auto --gas-adjustment 1.5 --fees 2100000000000000azeta -y