How to withdraw your validator rewards

Assuming you have a validator running, or have tokens staked to a validator, you'll eventually want to withdraw your rewards. Here's how to do it.

First find your validator address:

$ mtcli keys show validator --bech val -a

To query your outstanding rewards:

$ mtcli query distr rewards <delegator address=""> [validator address]</delegator>

To withdraw rewards from a particular validator:

$ mtcli tx distr withdraw-rewards <validator address=""></validator>

To withdraw all rewards for a single delegator address:

$ mtcli tx distr withdraw-all-rewards --from <delegator address=""></delegator>