Created
December 7, 2025 20:49
-
-
Save leostera/dbbde9bb2e0dbbe1b5b7f1016c14fb58 to your computer and use it in GitHub Desktop.
Query Solana transaction data with DuckDB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import duckdb | |
| duckdb.sql(""" | |
| SELECT DATE_TRUNC('hour', block_timestamp) AS hour, | |
| COUNT(*) AS tx_count, | |
| SUM(fee) / 1e9 AS total_fees_sol | |
| FROM '2025-11-01/*.parquet' | |
| GROUP BY hour | |
| ORDER BY hour | |
| """).show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment