Chain ID: zetachain_7000-1 | Node Version: v36.0.0
note
First You Need Set Variabels
MONIKER=<YOUR_MONIKER_NAME>
echo "export MONIKER=$MONIKER" >> $HOME/.bash_profile
echo "export ZETA_CHAIN_ID="zetachain_7000-1"" >> $HOME/.bash_profile
source $HOME/.bash_profile
- Wallet
- Validator
- Token
- Service
- Governance
- Utility
- Delete
Wallet
Create Wallet
zetacored keys add wallet
Recovery Wallet
zetacored keys add wallet --recover
List All Wallet
zetacored keys list
Delete Wallet
zetacored keys delete wallet
Check Wallet Balance
zetacored q bank balances $(zetacored keys show wallet -a)
Validator
note
Make sure you have adjust YOUR_KEYBASE_ID, YOUR_DETAILS, YOUR_WEBSITE_URL
Check Pubkey
zetacored tendermint show-validator
Make File validator.json
tee $HOME/.zetacored/validator.json > /dev/null << EOF
{
"pubkey": YOUR_PUBKEY,
"amount": "1000000000azeta",
"moniker": "MONIKER",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"security": "YOUR_CONTACT_MAIL",
"details": "YOUR_DETAILS.",
"commission-rate": "0.1",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
EOF
Create Validator
zetacored tx staking create-validator $HOME/.zetacored/validator.json --from wallet --chain-id $--chain-id=$ \
--gas-adjustment 1.5 --gas 225000 --gas-prices 20000000000azeta
Edit Validator
zetacored tx staking edit-validator \
--new-moniker="YOUR MONIKER" \
--identity="IDENTITY KEYBASE" \
--details="DETAILS VALIDATOR" \
--website="LINK WEBSITE" \
--chain-id=$ZETA_CHAIN_ID \
--from=wallet \
--gas-adjustment=1.5 \
--gas="auto" \
--gas-prices=20000000000azeta
Check Jailed Reason
zetacored query slashing signing-info $(zetacored tendermint show-validator)
Unjail Validator
zetacored tx slashing unjail --from wallet --chain-id $ZETA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 20000000000azeta -y
Token
Withdraw Rewards
zetacored tx distribution withdraw-all-rewards --from wallet --chain-id $ZETA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 20000000000azeta -y
Withdraw Rewards with Comission
zetacored tx distribution withdraw-rewards $(zetacored keys show wallet --bech val -a) --commission --from wallet --chain-id $ZETA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 20000000000azeta -y
Delegate Tokens to Your Validator
zetacored tx staking delegate $(zetacored keys show wallet --bech val -a) 1000000000000000000azeta --from wallet --chain-id $ZETA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 20000000000azeta -y
Redelegate Tokens to Another Validator
zetacored tx staking redelegate $(zetacored keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000000000000000azeta --from wallet --chain-id $ZETA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 20000000000azeta -y
Unbond Tokens from Your Validator
zetacored tx staking unbond $(zetacored keys show wallet --bech val -a) 1000000000000000000azeta --from wallet --chain-id $ZETA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 20000000000azeta -y
Send Tokens to Any Wallet
zetacored tx bank send wallet <TO_WALLET_ADDRESS> 1000000000000000000azeta --from wallet --chain-id $ZETA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 20000000000azeta -y
Service
Reload Service
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable zetacored
Disable Service
sudo systemctl disable zetacored
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
Check Service Logs
sudo journalctl -u zetacored -f --no-hostname -o cat
Governance
tip
For Vote, You can change the value of yes to no, abstain, no_with_veto
Vote
zetacored tx gov vote 1 yes --from wallet --chain-id $ZETA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 20000000000azeta -y
List all Proposals
zetacored query gov proposals
Check Vote
zetacored tx gov vote PROPOSAL_NUMBER VOTE_OPTION --from wallet --chain-id $ZETA_CHAIN_ID --gas-adjustment 1.5 --gas auto --gas-prices 20000000000azeta -y
Create new Proposal
zetacored tx gov submit-proposal \
--title="Title" \
--description="Description" \
--deposit=10000000azeta \
--type="Text" \
--from=wallet \
--gas-adjustment 1.5 \
--gas "auto" \
--gas-prices=20000000000azeta \
-y
Utility
Set Indexer null / kv
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.zetacored/config/config.toml
Get Validator Info
zetacored status 2>&1 | jq .ValidatorInfo
Get Denom Info
zetacored q bank denom-metadata -oj | jq
Get Sync Status
zetacored status 2>&1 | jq .SyncInfo.catching_up
Get Latest Height
zetacored status 2>&1 | jq .SyncInfo.latest_block_height
Get Node Peer
echo $(zetacored tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.zetacored/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Set Minimum Gas Price
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"20000000000azeta\"/" $HOME/.zetacored/config/app.toml
Enable Prometheus
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.zetacored/config/config.toml
Reset Chain Data
zetacored tendermint unsafe-reset-all --home $HOME/.zetacored --keep-addr-book
Delete
WARNING!!! Please, before you advance to the following step! The entire chain data will be gone! Make sure you have a backup of your priv_validator_key.json!
Delete Node
sudo systemctl stop zetacored && sudo systemctl disable zetacored && sudo rm /etc/systemd/system/zetacored.service && sudo systemctl daemon-reload && sudo rm -rf $(which zetacored) && rm -rf $HOME/.zetacored