Tools for exporting Avalanche blockchain data to CSV or JSON
Project description
Avalanche ETL
Avalanche ETL lets you convert Avalanche blockchain data into convenient formats like JSONs, CSVs and relational databases. This is a fork of Ethereum ETL.
Full documentation available here.
Notice: Avalanche ETL is still on the beta version. However, CLIs are all functional.
Quickstart
Install Avalanche ETL:
pip3 install avalanche-etl
Export blocks and transactions
> avalancheetl export_blocks_and_transactions --start-block 0 --end-block 5000 \
--blocks-output blocks.json --transactions-output transactions.json
Export ERC20 and ERC721 transfers
> avalancheetl export_token_transfers --start-block 0 --end-block 5000 \
--output token_transfers.json
Export traces
> avalancheetl export_traces --start-block 0 --end-block 5000 \
--output traces.json
Find other commands here.
For the latest version, check out the repo and call
> pip3 install -e .
> python3 avalancheetl.py
Running in Docker
-
Install Docker https://docs.docker.com/install/
-
Build a docker image
> docker build -t avalanche-etl:latest . > docker image ls
-
Run a container out of the image
> docker run -v $HOME/output:/avalanche-etl/output avalanche-etl:latest export_all -s 0 -e 5499999 -b 100000 > docker run -v $HOME/output:/avalanche-etl/output avalanche-etl:latest export_all -s 2018-01-01 -e 2018-01-01
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file avalanche-etl-0.0.2.tar.gz
.
File metadata
- Download URL: avalanche-etl-0.0.2.tar.gz
- Upload date:
- Size: 56.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adef1a3269ffceb199421041f5b5a4721861604f731ffc43ba41bea1c503b013 |
|
MD5 | a94bcfbf3f9a8d449f051cd5a6a9612f |
|
BLAKE2b-256 | 9d702854e2eeb0e5786f4705a8928e22f348984834e5396b9dfe1a9206202b4f |