Created
May 26, 2019 08:11
-
-
Save allenday/b7867cc0db76b810dee2ab9215e0512d to your computer and use it in GitHub Desktop.
Ethereum gas price by date from BigQuery
This file contains 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
SELECT CAST('2019-04-01' AS DATE) AS d, AVG(gas_used) AS gas | |
FROM `bigquery-public-data.crypto_ethereum.blocks` | |
WHERE TRUE | |
AND timestamp >= TIMESTAMP('2019-04-01') | |
AND timestamp <= TIMESTAMP(DATE_ADD(CAST('2019-04-01' AS DATE), INTERVAL 1 DAY)) | |
GROUP BY d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment