How to withdraw 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.

To find your validator address:

$ mtm keys show <key name> --bech val -a

To query your outstanding rewards:

$ mtm query distribution rewards $(mtm keys show <key name> -a)

To query your outstanding commission:

$ mtm query distribution commission $(mtm keys show <key name> --bech val -a)

To withdraw rewards and commission from a particular validator:

$ mtm tx distrbution withdraw-rewards $(mtm keys show <key name> --bech val -a) --commission --from $(mtm keys show <key name> -a)