EVM Chain ETL Table Definition CLI allows generating table definitions for Ethereum ETL, Polygon ETL, EVM Chain ETL.
Read this article for more details: How to get any Ethereum smart contract into BigQuery (in 8 mins).
- Python 3.6+
Install the cli:
pip install evmchain-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
Output will be in the output
directory.
For the latest version, check out the repo and call
pip install -e .
python tabledefinition.py --help