avalanche-etl-0.0.2
توضیحات
Tools for exporting Avalanche blockchain data to CSV or JSON
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | avalanche-etl-0.0.2 |
| نام | avalanche-etl |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Zhassulan Shaikhygali |
| ایمیل نویسنده | shaikh.zhas@gmail.com |
| آدرس صفحه اصلی | https://github.com/shaikhzhas/avalanche-etl |
| آدرس اینترنتی | https://pypi.org/project/avalanche-etl/ |
| مجوز | - |
# 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](https://github.com/blockchain-etl/ethereum-etl).
[Full documentation available here](http://avalanche-etl.readthedocs.io/).
***Notice: Avalanche ETL is still on the beta version. However, CLIs are all functional.***
## Quickstart
Install Avalanche ETL:
```bash
pip3 install avalanche-etl
```
Export blocks and transactions
```bash
> avalancheetl export_blocks_and_transactions --start-block 0 --end-block 5000 \
--blocks-output blocks.json --transactions-output transactions.json
```
Export ERC20 and ERC721 transfers
```bash
> avalancheetl export_token_transfers --start-block 0 --end-block 5000 \
--output token_transfers.json
```
Export traces
```bash
> avalancheetl export_traces --start-block 0 --end-block 5000 \
--output traces.json
```
Find other commands [here](avalancheetl/cli/__init__.py).
For the latest version, check out the repo and call
```bash
> pip3 install -e .
> python3 avalancheetl.py
```
### Running in Docker
1. Install Docker https://docs.docker.com/install/
2. Build a docker image
```bash
> docker build -t avalanche-etl:latest .
> docker image ls
```
3. Run a container out of the image
```bash
> 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
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.2,<4 | Python |
نحوه نصب
نصب پکیج whl avalanche-etl-0.0.2:
pip install avalanche-etl-0.0.2.whl
نصب پکیج tar.gz avalanche-etl-0.0.2:
pip install avalanche-etl-0.0.2.tar.gz