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 taxes as ( 3 SELECT * FROM tornado_cash."eth_call_withdraw" wth 4 INNER JOIN ethereum.traces trs ON trs.trace_address = wth.call_trace_address AND trs.tx_hash = wth.call_tx_hash 5 ) 6SELECT 7 date_trunc('week', block_time) as time, 8 SUM(_fee * p.price)/1e18 as earned 9FROM taxes 10LEFT JOIN prices.layer1_usd_eth p ON p.minute = date_trunc('minute', block_time) 11GROUP BY 1 12ORDER BY 1 DESC 13