Wallet Management

Add New Wallet

0gchaind keys add $WALLET

Restore existing wallet

0gchaind keys add $WALLET --recover

List All Wallets

0gchaind keys list

Delete wallet

0gchaind keys delete $WALLET

Check Balance

0gchaind q bank balances $(0gchaind keys show $WALLET -a)

Export Key (save to wallet.backup)

0gchaind keys export $WALLET

View EVM Prived Key

0gchaind keys unsafe-export-eth-key $WALLET

Import Key (restore from wallet.backup)

0gchaind keys import $WALLET wallet.backup

Tokens

Withdraw all rewards

0gchaind tx distribution withdraw-all-rewards --from $WALLET --chain-id zgtendermint_16600-2 --gas-adjustment 1.4 --gas auto -y

Withdraw rewards and commission from your validator

0gchaind tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id zgtendermint_16600-2 --gas-adjustment 1.4 --gas auto -y

Check your balance

0gchaind query bank balances $WALLET_ADDRESS

Delegate to Yourself

0gchaind tx staking delegate $(0gchaind keys show $WALLET --bech val -a) 1000000ua0gi --from $WALLET --chain-id zgtendermint_16600-2 --gas-adjustment 1.4 --gas auto -y

Delegate

0gchaind tx staking delegate <TO_VALOPER_ADDRESS> 1000000ua0gi --from $WALLET --chain-id zgtendermint_16600-2 --gas-adjustment 1.4 --gas auto -y

Redelegate Stake to Another Validator

0gchaind tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000ua0gi --from $WALLET --chain-id zgtendermint_16600-2 --gas-adjustment 1.4 --gas auto -y

Unbond

0gchaind tx staking unbond $(0gchaind keys show $WALLET --bech val -a) 1000000ua0gi --from $WALLET --chain-id zgtendermint_16600-2 --gas-adjustment 1.4 --gas auto -y

Transfer Funds

0gchaind tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000ua0gi --chain-id zgtendermint_16600-2 --gas-adjustment 1.4 --gas auto -y

Last updated