Last active
February 1, 2022 15:51
-
-
Save thosmos/4165b796f43dc06f83c8b6a31d1b5dab to your computer and use it in GitHub Desktop.
gravity validator useful commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# query balances of a delegator key (AKA validator key) | |
gravity q bank balances gravity1dt7zu2evtce5mx7n6t0fledu0dsnglkfdk8e3w | |
# query pending delegator rewards (rewards for delegating to a validator) | |
gravity q distribution rewards gravity1dt7zu2evtce5mx7n6t0fledu0dsnglkfdk8e3w | |
# query pending validator commission (rewards for running a validator, often ~%10 of a validator's rewards) | |
gravity q distribution commission gravityvaloper1dt7zu2evtce5mx7n6t0fledu0dsnglkfua78m6 | |
# withdraw delegator rewards from a specific validator | |
gravity tx distribution withdraw-rewards gravityvaloper1dt7zu2evtce5mx7n6t0fledu0dsnglkfua78m6 --from gkey --chain-id gravity-bridge-3 | |
# withdraw delegator rewards from multiple validators | |
gravity tx distribution withdraw-all-rewards --from gkey --chain-id gravity-bridge-3 | |
# withdraw both BOTH delegator rewards AND validator commission from one's own validator | |
gravity tx distribution withdraw-rewards gravityvaloper1dt7zu2evtce5mx7n6t0fledu0dsnglkfua78m6 --commission --from gkey --chain-id gravity-bridge-3 | |
# delegate to a validator | |
gravity tx staking delegate --from gkey --chain-id gravity-bridge-1 gravityvaloper1dt7zu2evtce5mx7n6t0fledu0dsnglkfua78m6 1818ugraviton --gas auto | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment