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 ETH as 2( 3SELECT 4date_trunc('week', block_time) as week, 5sum(value/1e18*p.price) as ETH_trval 6FROM ethereum."transactions" 7LEFT JOIN ( 8 SELECT 9 date_trunc('week', minute) as week, 10 avg(price) as price 11 FROM prices.usd 12 WHERE symbol='WETH' 13 GROUP BY 1) p ON p.week = date_trunc('week', block_time) 14WHERE block_time > '1/1/2020' 15GROUP BY 1 16), 17 18tokens AS 19( 20SELECT 21contract_address, 22symbol, 23decimals 24FROM erc20."tokens" 25UNION ALL...