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.
1SELECT 2 date_trunc('month', tx.block_time) AS time, 3 SUM( 4 t0.amount / POWER(10, decimals) * ( 5 CASE 6 WHEN t0.contract_address = '\xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' THEN ( 7 SELECT p.price 8 FROM prices."usd" p 9 WHERE p.contract_address is NULL 10 ANd p.symbol = 'ETH' 11 AND p.minute = date_trunc('minute', tx.block_time) 12 LIMIT 1 13 ) 14 ELSE ( 15 SELECT p.price 16 FROM prices."usd" p 17 WHERE p.contract_address = contract_address 18 AND p.minute = date_trunc('minute', tx.block_time) 19 LIMIT 1 20 ) 21 END 22 ) 23 ) as usd 24FROM ( 25 (...