Tokens

[To avoid wrong execute copy the command to your notes first]

Pre-requisites

export SERVICE_NAME="" \
export WALLET_NAME="" \
export CHAIN_ID="" \
export TOKEN=""

Check to avoid wrong command

echo service=$SERVICE_NAME && echo wallet=$WALLET_NAME && echo chainID=$CHAIN_ID && echo token=$TOKEN

Withdraw all rewards

$SERVICE_NAME tx distribution withdraw-all-rewards --from $WALLET --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.0025$TOKEN

Withdraw rewards and commission from your validator

$SERVICE_NAME tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.0025$TOKEN -y

Check your balance

$SERVICE_NAME query bank balances $WALLET_ADDRESS

Delegate to Yourself

$SERVICE_NAME tx staking delegate $($SERVICE_NAME keys show $WALLET --bech val -a) 1000000$TOKEN --from $WALLET --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.0025$TOKEN -y

Delegate

$SERVICE_NAME tx staking delegate <TO_VALOPER_ADDRESS> 1000000$TOKEN --from $WALLET --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.0025$TOKEN -y

Redelegate Stake to Another Validator

$SERVICE_NAME tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000$TOKEN --from $WALLET --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.0025$TOKEN -y

Unbond

$SERVICE_NAME tx staking unbond $($SERVICE_NAME keys show $WALLET --bech val -a) 1000000$TOKEN --from $WALLET --chain-id $CHAIN_ID --gas auto --gas-adjustment 1.5 --gas-prices 0.0025$TOKEN -y

Transfer Funds

$SERVICE_NAME tx bank send $WALLET_ADDRESS <TO_VALOPER_ADDRESS> 1000000$TOKEN --gas auto --gas-adjustment 1.5 --gas-prices 0.0025$TOKEN -y

Last updated