1

during the staking process, validators, nominators and nomination pool members earn rewards, but they are not assigned automatically. Participants have to trigger payouts to get it. Is there a way to estimate number of unclaimed rewards for validators/nominators/pool members? I see something for example here in the claimable column https://azero.dev/#/staking/pools but would like to calculate it on my own based on the blockchain data

1 Answer 1

2

There are different options to get the Unclaimed rewards:

  • For a validator, use this api.query.staking.erasValidatorReward, see the docs.
  • For the pool, use this api.query.nominationPools.rewardPools, check the docs.
  • For a specific user inside the pool, use this: api.call.nominationPoolsApi.pendingRewards check the docs.
3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.