Skip to main content

Manage Delegator Rewards

Calculating Rewards

To calculate the rewards you have earned, you can use the following command:

hedged query distribution rewards <delegator_address>

This command shows the rewards that you have earned from each validator:

rewards:
- reward:
- amount: "33446209.865880719252979000"
denom: uhedge
validator_address: hedgevaloper14ryuk7c3ul894cqfekfzawlm928cvh4ehsxq7d
- reward:
- amount: "674201594136.000000000000000000"
denom: uhedge
validator_address: hedgevaloper1qumrwnz9x2emzd5yjylp8pf9w2wh3my0gag27y
- reward:
- amount: "1597782052369.999999999999999999"
denom: uhedge
validator_address: hedgevaloper1pptfhnyj37qn0nfuhmu7m5ssy5x6td8hmccpzl
- reward:
- amount: "337307045870000.003493213123204105"
denom: uhedge
validator_address: hedgevaloper1ymnrwg9e3xr9xkw42ygzjx34dyvwvtc24ct0t5
total:
- amount: "33446209.865880719252979000"
denom: uhedge

Withdrawing Rewards

To withdraw your rewards from all validators, run the following command:

hedged tx distribution withdraw-all-rewards --from <key_name> --gas auto --gas-adjustment 1.5 --gas-prices 0.025uhedge --chain-id <chain_id>
  • <key_name>: Specify the name of your wallet.
  • <chain_id>: Replace this with the chain ID of the Hedge network you are delegating to (e.g., berberis-1).

Confirm the transaction to withdraw your rewards:

gas estimate: 137139
auth_info:
fee:
amount:
- amount: "3429"
denom: uhedge
gas_limit: "137139"
granter: ""
payer: ""
signer_infos: []
tip: null
body:
extension_options: []
memo: ""
messages:
- '@type': /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward
delegator_address: hedge14ryuk7c3ul894cqfekfzawlm928cvh4emek5m0
validator_address: hedgevaloper14ryuk7c3ul894cqfekfzawlm928cvh4ehsxq7d
- '@type': /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward
delegator_address: hedge14ryuk7c3ul894cqfekfzawlm928cvh4emek5m0
validator_address: hedgevaloper1qumrwnz9x2emzd5yjylp8pf9w2wh3my0gag27y
- '@type': /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward
delegator_address: hedge14ryuk7c3ul894cqfekfzawlm928cvh4emek5m0
validator_address: hedgevaloper1pptfhnyj37qn0nfuhmu7m5ssy5x6td8hmccpzl
- '@type': /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward
delegator_address: hedge14ryuk7c3ul894cqfekfzawlm928cvh4emek5m0
validator_address: hedgevaloper1ymnrwg9e3xr9xkw42ygzjx34dyvwvtc24ct0t5

non_critical_extension_options: []
timeout_height: "0"
signatures: []
confirm transaction before signing and broadcasting [y/N]: y

Type y and press Enter to confirm.

code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: 92715FAAA5D1DC9DDA743865A0B53F210FA3C9D3D330AA2097EB16B870C6F2D7