Socket
Socket
Sign inDemoInstall

blockchain-etl-table-definition-cli

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blockchain-etl-table-definition-cli

Tools for generating table definitions for https://github.com/blockchain-etl/ethereum-etl-airflow


Maintainers
1

Blockchain ETL Table Definition CLI

Blockchain ETL Table Definition CLI allows generating table definitions for Ethereum ETL, Polygon ETL, EVM Chain ETL, Solana ETL.

Read this article for more details: How to get any Ethereum smart contract into BigQuery (in 8 mins).

Requirements:

  • Python 3.6+

Quickstart

Install the cli:

pip install blockchain-etl-table-definition-cli

Generate table definitions (example_uniswap_abi.json can be downloaded from here):

tabledefinition generate \
    --abi-file example_uniswap_abi.json \
    --dataset-name uniswap \
    --contract-name Uni \
    --contract-address 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984

For Solana:

tabledefinition generate \
    --chain solana \
    --abi-file example_metaplex_idl.json \
    --dataset-name metaplex \
    --contract-name AuctionHouse \
    --contract-address hausS13jsjafwWwGqZTUQRmWyvyxn9EQpqMwV1PBBmk
    --include-functions

Output will be in the output directory.


For the latest version, check out the repo and call

pip install -e .
python tabledefinition.py --help 

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc