Ethereum 2.0 ETL
Ethereum 2.0 ETL lets you convert blockchain data into convenient formats like CSVs and relational databases.
Do you just want to query Ethereum data right away? Use the public dataset in BigQuery.
Full documentation available here.
Quickstart
Install Ethereum 2.0 ETL:
pip install ethereum2-etl
Sync your own node or request access to node on Infura.
Export beacon blocks, attestations, deposits, proposer slashings, attester slashings, voluntary exits (JSON Schema, CSV Schema, Reference):
> ethereum2etl export_beacon_blocks --start-block 0 --end-block 200 \
--output-dir output --output-format json \
--provider-uri https://projectid:secret@medalla.infura.io
Export beacon validators (JSON Schema, CSV Schema, Reference):
> ethereum2etl export_beacon_validtors --epoch 10 \
--output-dir output --output-format json \
--provider-uri https://projectid:secret@medalla.infura.io
Export beacon committees (JSON Schema, CSV Schema, Reference):
> ethereum2etl export_beacon_committees --start-epoch 0 --end-epoch 10 \
--output-dir output --output-format json \
--provider-uri https://projectid:secret@medalla.infura.io
Find other commands here. Read this article for example SQL queries.
For the latest version, check out the repo and call
> pip install -e .
> python ethereum2etl.py
Useful Links
Running Tests
> pip install -e .[dev]
> export ETHEREUM2ETL_PROVIDER_URI=https://projectid:secret@medalla.infura.io
> pytest -vv
Running Tox Tests
> pip install tox
> tox
Running in Docker
-
Install Docker https://docs.docker.com/install/
-
Build a docker image
> docker build -t ethereum2-etl:latest . > docker image ls -
Run a container out of the image
> docker run -v $HOME/output:/ethereum2-etl/output ethereum2-etl:latest export_beacon_blocks -s 0 -e 200 -p https://projectid:secret@medalla.infura.io > docker run -v $HOME/output:/ethereum2-etl/output ethereum2-etl:latest export_beacon_blocks -s 2020-08-04 -e 2020-08-05 -p https://projectid:secret@medalla.infura.io
Projects using Ethereum ETL
- Google - Public BigQuery Ethereum datasets
- Nansen - Blockchain analytics platform
- Medalla Data Challenge - analyses of the Ethereum 2.0 blockchain
Metadata
Release files for ethereum2-etl 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ethereum2-etl-0.0.7.tar.gz | 14.5 kB | Without provenance | Details |
Release files / ethereum2-etl-0.0.7.tar.gz
| Download URL | ethereum2-etl-0.0.7.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad6236ea3651de66f0b4c3da9b4a7cc76b2418c646bcd2b4f1c3be43198e6e38
|
|
BLAKE2b-256 checksum How to use checksums |
29b1ccffb3773f7671d84b2cd17b39f03ff67c2df16825f3416c1e2a50e9613d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6
|
Security for ethereum2-etl 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.