Skip to main content

Asset Management

You should replace <serviceName> with the name of the service that you created to run your node. For instance, wardend, hedged, or 0gchain are the names of example services that are commonly used to operate nodes of corresponding projects.

Use your own <walletName> e.g. wardend keys add kgnodes.

  1. Withdraw all rewards

    <serviceName> tx distribution withdraw-all-rewards --from $WALLET --chain-id <chain-id> --gas auto --gas-adjustment 1.5 --fees 600<uToken>
  2. Withdraw rewards and commission from your validator

    <serviceName> tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id <chain-id> --gas auto --gas-adjustment 1.5 --fees 600<uToken> -y
  3. Check your balance

    <serviceName> query bank balances $WALLET_ADDRESS
  4. Delegate to Yourself

    <serviceName> tx staking delegate $(<serviceName> keys show $WALLET --bech val -a) 1000000<uToken> --from $WALLET --chain-id <chain-id> --gas auto --gas-adjustment 1.5 --fees 600<uToken> -y
  5. Delegate to Valoper Address

    <serviceName> tx staking delegate $TO_VALOPER_ADDRESS 1000000<uToken> --from $WALLET --chain-id <chain-id> --gas auto --gas-adjustment 1.5 --fees 600<uToken> -y
  6. Redelegate Stake to Another Validator

    <serviceName> tx staking redelegate $VALOPER_ADDRESS $TO_VALOPER_ADDRESS 1000000<uToken> --from $WALLET --chain-id <chain-id> --gas auto --gas-adjustment 1.5 --fees 600<uToken> -y
  7. Unbond -> There will be an unbounding duration. It is usually set to 21 days. Please be careful!

    <serviceName> tx staking unbond $(<serviceName> keys show $WALLET --bech val -a) 1000000<uToken> --from $WALLET --chain-id <chain-id> --gas auto --gas-adjustment 1.5 --fees 600<uToken> -y
  8. Transfer Funds

    <serviceName> tx bank send $WALLET_ADDRESS $TO_WALLET_ADDRESS 1000000<uToken> --gas auto --gas-adjustment 1.5 --fees 600<uToken> -y