4

I was left a bit confused after reading the docs here, here and the code here on the topic.

My key questions:

  1. Is there a way to retrieve a certain validator's reward value for a given block via API responses only?
  2. If so, then which API methods to use for the most effective result?

At the very moment, it seems to me that the only way to get such data is to calculate rewards using Beacon API data (beacon and config data endpoints in particular) and the formulas. This gotta be a heck of a computation (assuming we need to know a sum of all validators' effective balances at a given moment in time), so I'm looking for some other way around.

There's a high probability of me missing something or overcomplicating, overthinking the problem. That's why I'd highly appreciate any kind of help or advice.

1
  • have you found a solution to this?
    – kolistivra
    Jun 2, 2023 at 12:00

1 Answer 1

1
  1. No, it's not possible.

You need something that will compute the rewards from the beginning like what the beaconcha.in indexing process is doing or maybe something like chaind is doing. In both cases, you need to setup your own clients on a machine, sync them and run that indexing process on top of it.

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.