/icon-etl

Primary LanguagePythonMIT LicenseMIT

ICON ETL

Build Status Pypi Version Pypi Version

ICON ETL lets you convert ICON blockchain data into convenient formats like CSVs and relational databases.

Full documentation available here.

Quickstart

Install ICON ETL:

pip3 install icon-etl

Export blocks and transactions:

> iconetl export_blocks_and_transactions --start-block 0 --end-block 500000 \
--blocks-output blocks.csv --transactions-output transactions.csv

Export logs and receipts:

> iconetl export_receipts_and_logs --transaction-hashes hashes.txt \
--receipts-output receipts.csv --logs-output logs.csv

Running Tests

> pip3 install -e .[dev]
> export ICON_ETL_RUN_SLOW_TESTS=True
> pytest -vv

Running Tox Tests

> pip3 install tox
> tox