Skip to main content

Tools for exporting Klaytn blockchain data to JSON

Project description

Klaytn ETL

Klaytn ETL lets you convert Klaytn blockchain data into convenient formats like JSONs, CSVs and relational databases. This is a fork of Ethereum ETL.

Full documentation available here.

Notice: Klaytn ETL is still on the beta version. However, CLIs are all functional.

Quickstart

Install Klaytn ETL:

pip3 install klaytn-etl-cli

Export blocks and transactions

> klaytnetl export_blocks_and_transactions --start-block 0 --end-block 5000 \
--blocks-output blocks.json --transactions-output transactions.json

Export ERC20 and ERC721 transfers

> klaytnetl export_token_transfers --start-block 0 --end-block 5000 \
--output token_transfers.json

Export traces

> klaytnetl 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 klaytnetl.py

Running in Docker

  1. Install Docker https://docs.docker.com/install/

  2. Build a docker image

    > docker build -t klaytn-etl:latest .
    > docker image ls
    
  3. Run a container out of the image

    > docker run -v $HOME/output:/klaytn-etl/output klaytn-etl:latest export_all -s 0 -e 5499999 -b 100000
    > docker run -v $HOME/output:/klaytn-etl/output klaytn-etl:latest export_all -s 2018-01-01 -e 2018-01-01
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

klaytn_etl_cli-0.3.8-py3-none-any.whl (251.2 kB view details)

Uploaded Python 3

File details

Details for the file klaytn_etl_cli-0.3.8-py3-none-any.whl.

File metadata

File hashes

Hashes for klaytn_etl_cli-0.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5280a38df229581cb915be519eecc96574f4d30353827bfc380ca88d46e683d3
MD5 f7cb0cf03759a1afe86d3add4b2f03a0
BLAKE2b-256 bc1484b6748f6ac7fda9089619b7f438f1ef456ca50c43f952efde15546ebaca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page