eth2353/eth2-staking-rewards-calculator

Exception: Error while fetching data from beacon node: {"code":404,"message":"NOT_FOUND: beacon state at slot 2847598","stacktraces":[]}

Opened this issue · 4 comments

aribo commented

The config.yml seems all correct with the right port for Lighthouse, however I get this error:

Exception: Error while fetching data from beacon node: {"code":404,"message":"NOT_FOUND: beacon state at slot 2847598","stacktraces":[]}

I'm not sure why you're getting that error.

Is there any reason you're not simply using ethstaker.tax?

(This repository is not really maintained anymore since I focus my efforts on ethstaker.tax which gives better information and is much easier to use.)

Running the script from this repository is not going to give you all the information you need for tax purposes anyway, since it doesn't account for execution layer rewards (tx fees, MEV).

aribo commented

I discovered ethstaker.tax after posting this. Thanks.
Btw, there may be an issue with the accounting of rewards for tax purposes at the moment they're allocated to the validator (as you do here) vs accounting them when they are sent to the withdrawal address. In my opinion, it's more appropriate the latter, for it is when they are available to recipient, similar interests received in a bank account. This has important implications, especially for those rewards accumulated before withdrawals were activated earlier this year.

That is also something ethstaker.tax supports - the output contains the consensus layer rewards both ways (when earned on the consensus layer / when withdrawn), so you can choose how you want to account for them.

aribo commented

Cool! Didn't notice that last column.
It could be useful to add a new column Withdrawals[Currency].