Service management
Check logs
Copy sudo journalctl -u 0gchaind -fo cat
Check service status
Copy sudo systemctl status 0gchaind
Node info
Copy 0gchaind status 2>&1 | jq
Start service
Copy sudo systemctl start 0gchaind
Stop service
Copy sudo systemctl stop 0gchaind
Restart service
Copy sudo systemctl restart 0gchaind
Reload daemon
Copy sudo systemctl daemon-reload
Enable Service
Copy sudo systemctl enable 0gchaind
Disable Service
Copy sudo systemctl disable 0gchaind
Wallet management
Add New Wallet
Copy 0gchaind keys add $WALLET
Restore executing wallet
Copy 0gchaind keys add $WALLET --recover
List All Wallets
Delete wallet
Copy 0gchaind keys delete $WALLET
Check Balance
Copy 0gchaind q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
Copy 0gchaind keys export $WALLET
View EVM Prived Key
Copy 0gchaind keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
Copy 0gchaind keys import $WALLET wallet.backup
Transfer Funds
Copy 0gchaind tx bank send $WALLET_ADDRESS < TO_WALLET_ADDRES S > 1000000ua0gi --gas=auto --gas-adjustment=1.6 -y
Validator management
Withdraw all rewards
Copy 0gchaind tx distribution withdraw-all-rewards --from $WALLET --chain-id zgtendermint_16600-2 --gas=auto --gas-adjustment=1.6
Withdraw rewards and commission from your validator
Copy 0gchaind tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id zgtendermint_16600-2 --gas=auto --gas-adjustment=1.6 -y
Delegate to Yourself
Copy 0gchaind tx staking delegate $( 0gchaind keys show $WALLET --bech val -a ) 1000000ua0gi --from $WALLET --chain-id zgtendermint_16600-2 --gas=auto --gas-adjustment=1.6 -y
Delegate
Copy 0gchaind tx staking delegate < TO_VALOPER_ADDRES S > 1000000ua0gi --from $WALLET --chain-id zgtendermint_16600-2 --gas=auto --gas-adjustment=1.6 -y
Redelegate Stake to Another Validator
Copy 0gchaind tx staking redelegate $VALOPER_ADDRESS < TO_VALOPER_ADDRES S > 1000000ua0gi --from $WALLET --chain-id zgtendermint_16600-2 --gas=auto --gas-adjustment=1.6 -y
Unbond
Copy 0gchaind tx staking unbond $( 0gchaind keys show $WALLET --bech val -a ) 1000000ua0gi --from $WALLET --chain-id zgtendermint_16600-2 --gas=auto --gas-adjustment=1.6 -y
Create New Validator
Copy 0gchaind tx staking create-validator \
--amount 1000000ua0gi \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $( 0gchaind tendermint show-validator ) \
--moniker "$MONIKER" \
--identity "" \
--details "" \
--chain-id zgtendermint_16600-2 \
--gas=auto --gas-adjustment=1.6 \
-y
Edit Existing Validator
Copy 0gchaind tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "" \
--from $WALLET \
--chain-id zgtendermint_16600-2 \
--gas=auto --gas-adjustment=1.6 \
-y
Validator Details
Copy 0gchaind q staking validator $( 0gchaind keys show $WALLET --bech val -a )
Jailing info
Copy 0gchaind q slashing signing-info $( 0gchaind tendermint show-validator )
Slashing parameters
Copy 0gchaind q slashing params
Unjail validator
Copy 0gchaind tx slashing unjail --from $WALLET --chain-id zgtendermint_16600-2 --gas=auto --gas-adjustment=1.6 -y
Active Validators List
Copy 0gchaind 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
Copy [[ $( 0gchaind q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key ) = $( 0gchaind status | jq -r .ValidatorInfo.PubKey.value ) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
Copy 0gchaind q slashing signing-info $( 0gchaind tendermint show-validator )
Governance
View proposal
Copy 0gchaind query gov proposal 1
Vote
Copy 0gchaind tx gov vote 1 yes --from $WALLET --chain-id zgtendermint_16600-2 --gas=auto --gas-adjustment=1.6 -y