{"id":13473766,"url":"https://github.com/blockchain-etl/ethereum-etl","last_synced_at":"2025-05-12T13:19:58.221Z","repository":{"id":37773957,"uuid":"131824549","full_name":"blockchain-etl/ethereum-etl","owner":"blockchain-etl","description":"Python scripts for ETL (extract, transform and load) jobs for Ethereum blocks, transactions, ERC20 / ERC721 tokens, transfers, receipts, logs, contracts, internal transactions. Data is available in Google BigQuery https://goo.gl/oY5BCQ","archived":false,"fork":false,"pushed_at":"2025-04-30T08:26:45.000Z","size":1891,"stargazers_count":3018,"open_issues_count":155,"forks_count":878,"subscribers_count":89,"default_branch":"develop","last_synced_at":"2025-05-12T13:19:42.369Z","etag":null,"topics":["aws","bigquery","blockchain-analytics","csv","erc20","erc20-tokens","erc721","ethereum","etl","export","gcp","google-cloud","sql","transaction"],"latest_commit_sha":null,"homepage":"https://t.me/BlockchainETL","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blockchain-etl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":"https://gitcoin.co/grants/233/ethereumetl"}},"created_at":"2018-05-02T08:55:38.000Z","updated_at":"2025-05-12T10:16:30.000Z","dependencies_parsed_at":"2024-03-12T05:31:02.554Z","dependency_job_id":"29bb4f8d-790d-441f-b687-b5c3c1edb5ce","html_url":"https://github.com/blockchain-etl/ethereum-etl","commit_stats":{"total_commits":796,"total_committers":44,"mean_commits":18.09090909090909,"dds":"0.20100502512562812","last_synced_commit":"9f62e7eceac6a1285bef2b53edfc51a73774eaa8"},"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockchain-etl%2Fethereum-etl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockchain-etl%2Fethereum-etl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockchain-etl%2Fethereum-etl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockchain-etl%2Fethereum-etl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blockchain-etl","download_url":"https://codeload.github.com/blockchain-etl/ethereum-etl/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253745196,"owners_count":21957319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","bigquery","blockchain-analytics","csv","erc20","erc20-tokens","erc721","ethereum","etl","export","gcp","google-cloud","sql","transaction"],"created_at":"2024-07-31T16:01:06.671Z","updated_at":"2025-05-12T13:19:58.214Z","avatar_url":"https://github.com/blockchain-etl.png","language":"Python","funding_links":["https://gitcoin.co/grants/233/ethereumetl"],"categories":["Python","dApps directory","I - Tools List","ETL Tools","Open source"],"sub_categories":["EVM Tools","Market Intelligence \u0026 Analysis"],"readme":"# Ethereum ETL\n\n[![Build Status](https://app.travis-ci.com/blockchain-etl/ethereum-etl.svg?branch=develop)](https://travis-ci.com/github/blockchain-etl/ethereum-etl)\n[![License](https://img.shields.io/github/license/blockchain-etl/ethereum-etl)](https://github.com/blockchain-etl/ethereum-etl/blob/develop/LICENSE)\n[![Telegram](https://img.shields.io/badge/telegram-join%20chat-blue.svg)](https://t.me/BlockchainETL)\n[![Twitter](https://img.shields.io/twitter/follow/EthereumETL)](https://x.com/EthereumETL)\n\nEthereum ETL lets you convert blockchain data into convenient formats like CSVs and relational databases.\n\n*Do you just want to query Ethereum data right away? Use the [public dataset in BigQuery](https://console.cloud.google.com/marketplace/details/ethereum/crypto-ethereum-blockchain).*\n\n[Full documentation available here](http://ethereum-etl.readthedocs.io/).\n\n## Quickstart\n\nInstall Ethereum ETL:\n\n```bash\npip3 install ethereum-etl\n```\n\nExport blocks and transactions ([Schema](docs/schema.md#blockscsv), [Reference](docs/commands.md#export_blocks_and_transactions)):\n\n```bash\n\u003e ethereumetl export_blocks_and_transactions --start-block 0 --end-block 500000 \\\n--blocks-output blocks.csv --transactions-output transactions.csv \\\n--provider-uri https://mainnet.infura.io/v3/7aef3f0cd1f64408b163814b22cc643c\n```\n\nExport ERC20 and ERC721 transfers ([Schema](docs/schema.md#token_transferscsv), [Reference](docs/commands.md#export_token_transfers)):\n\n```bash\n\u003e ethereumetl export_token_transfers --start-block 0 --end-block 500000 \\\n--provider-uri file://$HOME/Library/Ethereum/geth.ipc --output token_transfers.csv\n```\n\nExport traces ([Schema](docs/schema.md#tracescsv), [Reference](docs/commands.md#export_traces)):\n\n```bash\n\u003e ethereumetl export_traces --start-block 0 --end-block 500000 \\\n--provider-uri file://$HOME/Library/Ethereum/parity.ipc --output traces.csv\n```\n\n---\n\nStream blocks, transactions, logs, token_transfers continually to console ([Reference](docs/commands.md#stream)):\n\n```bash\n\u003e pip3 install ethereum-etl[streaming]\n\u003e ethereumetl stream --start-block 500000 -e block,transaction,log,token_transfer --log-file log.txt \\\n--provider-uri https://mainnet.infura.io/v3/7aef3f0cd1f64408b163814b22cc643c\n```\n\nFind other commands [here](https://ethereum-etl.readthedocs.io/en/latest/commands/).\n\nFor the latest version, check out the repo and call \n```bash\n\u003e pip3 install -e . \n\u003e python3 ethereumetl.py\n```\n\n## Useful Links\n\n- [Schema](https://ethereum-etl.readthedocs.io/en/latest/schema/)\n- [Command Reference](https://ethereum-etl.readthedocs.io/en/latest/commands/)\n- [Documentation](https://ethereum-etl.readthedocs.io/)\n- [Public Datasets in BigQuery](https://github.com/blockchain-etl/public-datasets)  \n- [Exporting the Blockchain](https://ethereum-etl.readthedocs.io/en/latest/exporting-the-blockchain/)\n- [Querying in Amazon Athena](https://ethereum-etl.readthedocs.io/en/latest/amazon-athena/)\n- [Querying in Google BigQuery](https://ethereum-etl.readthedocs.io/en/latest/google-bigquery/)\n- [Querying in Kaggle](https://www.kaggle.com/bigquery/ethereum-blockchain)\n- [Airflow DAGs](https://github.com/blockchain-etl/ethereum-etl-airflow)\n- [Postgres ETL](https://github.com/blockchain-etl/ethereum-etl-postgresql)\n- [Ethereum 2.0 ETL](https://github.com/blockchain-etl/ethereum2-etl)\n\n## Running Tests\n\n```bash\n\u003e pip3 install -e .[dev,streaming]\n\u003e export ETHEREUM_ETL_RUN_SLOW_TESTS=True\n\u003e export PROVIDER_URL=\u003cyour_provider_uri\u003e\n\u003e pytest -vv\n``` \n\n### Running Tox Tests\n\n```bash\n\u003e pip3 install tox\n\u003e tox\n```\n\n## Running in Docker\n\n1. Install Docker: https://docs.docker.com/get-docker/\n\n2. Build a docker image\n        \n        \u003e docker build -t ethereum-etl:latest .\n        \u003e docker image ls\n        \n3. Run a container out of the image\n\n        \u003e docker run -v $HOME/output:/ethereum-etl/output ethereum-etl:latest export_all -s 0 -e 5499999 -b 100000 -p https://mainnet.infura.io\n        \u003e docker run -v $HOME/output:/ethereum-etl/output ethereum-etl:latest export_all -s 2018-01-01 -e 2018-01-01 -p https://mainnet.infura.io\n\n4. Run streaming to console or Pub/Sub\n\n        \u003e docker build -t ethereum-etl:latest .\n        \u003e echo \"Stream to console\"\n        \u003e docker run ethereum-etl:latest stream --start-block 500000 --log-file log.txt\n        \u003e echo \"Stream to Pub/Sub\"\n        \u003e docker run -v /path_to_credentials_file/:/ethereum-etl/ --env GOOGLE_APPLICATION_CREDENTIALS=/ethereum-etl/credentials_file.json ethereum-etl:latest stream --start-block 500000 --output projects/\u003cyour_project\u003e/topics/crypto_ethereum\n\nIf running on an Apple M1 chip add the `--platform linux/x86_64` option to the `build` and `run` commands e.g.:\n\n```\ndocker build --platform linux/x86_64 -t ethereum-etl:latest .\ndocker run --platform linux/x86_64 ethereum-etl:latest stream --start-block 500000\n```\n\n## Projects using Ethereum ETL\n* [Google](https://goo.gl/oY5BCQ) - Public BigQuery Ethereum datasets\n* [Nansen](https://nansen.ai/query?ref=ethereumetl) - Analytics platform for Ethereum\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockchain-etl%2Fethereum-etl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblockchain-etl%2Fethereum-etl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockchain-etl%2Fethereum-etl/lists"}