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 b_pools AS 2( 3SELECT 4pool as pools 5FROM balancer."BFactory_evt_LOG_NEW_POOL" 6), 7 8pool_balance AS 9( 10SELECT 11pools, 12t.symbol as token, 13t.decimals, 14sum(value) as amount 15FROM erc20."ERC20_evt_Transfer" e 16LEFT JOIN b_pools ON e."to" = b_pools.pools 17LEFT JOIN erc20."tokens" t ON e.contract_address = t.contract_address 18WHERE e."to" IN (pools) 19GROUP BY 1,2,3 20UNION 21SELECT 22pools, 23t.symbol as token, 24t.decimals, 25sum(-value) as amount...