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.
1WITH 2 tx_fees AS ( 3 SELECT sum((GREATEST(t.gas_price,10*POWER(10,9)) - 5*POWER(10,9)) * t.gas_used) as burnt /* Assumes that the EIP-1559 tip is 5 gwei and rest is basefee*/ 4 FROM ethereum.transactions as t 5 WHERE block_time >= (DATE_TRUNC('hour',CURRENT_TIMESTAMP) - '1 days'::INTERVAL) 6 ) 7 , block_rewards AS ( 8 SELECT count(b) * 2*POWER(10,18) as rewards 9 FROM ethereum.blocks as b 10 WHERE time >= (DATE_TRUNC('hour',CURRENT_TIMESTAMP) - '1 days'::INTERVAL) 11 ) 12 SELECT 13 (blocks.rewards - fees.burnt) / power(10, 18) as daily_ETH_issuance 14 15 FROM tx_fees fees 16 CROSS JOIN block_rewards blocks