Skip to content
Dune Analytics

@phabc / Fork of (#4294) Median Gas Price, by day

Fork of (#4294) Median Gas Price, by day

Loading
 

About queries and results

Dune Analytics lets you explore, create, and share Ethereum analytics. You can find an endless amount of great queries and dashboards on Dune.

We have decoded Ethereum smart contract data so you can do powerful analysis with simple SQL queries and visualise the query results into beautiful graphs.

Dune Analytics is free for everyone forever. If you want extra features like private queries, export your results and more check out our Pro plan.

SQL query

1SELECT
2    DATE_TRUNC('day',block_time) AS dt
3    , (PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY gas_price)) / 1e9  AS median_gas_price_gwei
4FROM ethereum.transactions
5WHERE
6    block_time >= (DATE_TRUNC('day',CURRENT_TIMESTAMP) - '90 days'::INTERVAL)
7GROUP BY 1
8ORDER BY 1;

SQL query results

Loading