Useful commands
List of useful command for ZeroGravity (0G) credit to Kenz|DragonVN
SET $WALLET_NAME
export WALLET_NAME=walletADD NEW KEY
0gchaind keys add $WALLET_NAME --ethRECOVER EXISTING KEY
0gchaind keys add $WALLET_NAME --eth --recoverLIST ALL KEYS
0gchaind keys listDELETE KEY
0gchaind keys delete <key_name>SHOW 0x ADDRESS OF A WALLET
echo "0x$(0gchaind debug addr $(0gchaind keys show $WALLET_NAME -a) | grep hex | awk '{print $3}')"EXPORT PRIVATE KEY OF AN 0x ADDRESS
0gchaind keys unsafe-export-eth-key $WALLET_NAMEQUERY WALLET BALANCE
0gchaind q bank balances $(0gchaind keys show $WALLET_NAME -a)Please make sure you adjust moniker, identity, details and website to match your values.
For each field that you do not have you may delete the whole line of the command.
Indentity is where you can display your node's logo. Please setup with Keybase.io
CREATE NEW VALIDATOR
0gchaind tx staking create-validator \
--amount 1000000ua0gi \
--pubkey $(0gchaind tendermint show-validator) \
--moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id zgtendermint_16600-2 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.05 \
--min-self-delegation 1 \
--from $WALLET_NAME \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.0025ua0gi \
-yEDIT EXISTING VALIDATOR
UNJAIL VALIDATOR
JAIL REASON
LIST ALL ACTIVE VALIDATORS
LIST ALL INACTIVE VALIDATORS
VIEW YOUR VALIDATOR DETAILS
WITHDRAW REWARDS FROM ALL VALIDATORS
WITHDRAW COMMISSION AND REWARDS FROM YOUR VALIDATOR
DELEGATE TOKENS TO YOURSELF
DELEGATE TOKENS TO VALIDATOR
REDELEGATE TOKENS TO ANOTHER VALIDATOR
UNBOND TOKENS FROM YOUR VALIDATOR
SEND TOKENS TO THE WALLET
Last updated