ethereum2-etl
ethereum2-etl copied to clipboard
how to use it in local node
Hello,
I tried to use ethereum2etl to extract the beacon_validators through local node
Here is my command:
ethereum2etl export_beacon_validators --output-dir output --output-format csv --provider-uri http://localhost:8545
and
I also tried geth.ipc one:
...... --provider-uri file://$HOME/geth-1.13/geth.ipc
But I can not finish it and met the error hint:
....
File "/home/alice/Downloads/yes/lib/python3.8/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://localhost:8545/eth/v1/beacon/states/head/validators
So I wonder whethetr this work can be done by local full geth node,thanks very much.
Have a great weekend.
This is because you are using the local Execution Layer, you need to use the Consensus Layer on top of the node to get the beacon data. The geth node at 8545 only has JSON RPC functions. See these docs. This repo is for eth2 / beacon API methods.
Do you have a Consensus Layer installed & synced? Such as Lighthouse, Prysm, etc. ?
Here is an overview: https://www.alchemy.com/overviews/execution-layer-and-consensus-layer-node-clients