Airflow DAGs for exporting, loading, and parsing the Ethereum blockchain data. How to get any Ethereum smart contract into BigQuery https://towardsdatascience.com/how-to-get-any-ethereum-smart-contract-into-bigquery-in-8-mins-bab5db1fdeee
We sometimes run into issues where the contract parser doesn't seem to be generating the correct files we need. In these cases its currently hard to debug things since we have no feedback that the parsing will work as intented.
[x] Log Parsing Support
[ ] Trace Parsing Support (WIP)
How?
I have created a generate_parse_sql.py file that can be called with the path of the json file + date.
Command
The command below tries to verify the json for ajna_v2 ERC721PoolFactory_event_PoolCreated events. Note i selected 2024-01-08 since I know there are events produced on that date from etherscan
What?
We sometimes run into issues where the contract parser doesn't seem to be generating the correct files we need. In these cases its currently hard to debug things since we have no feedback that the parsing will work as intented.
[x] Log Parsing Support [ ] Trace Parsing Support (WIP)
How?
I have created a
generate_parse_sql.py
file that can be called with the path of the json file + date.Command
The command below tries to verify the json for ajna_v2
ERC721PoolFactory_event_PoolCreated
events. Note i selected2024-01-08
since I know there are events produced on that date from etherscanOutput
This will generate some sql for you to test out the parsing and verify everything is woring as expected
Running SQL in BQ
We can use the
parsed_log
column to verify everything we need is correctly parsed