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 tokens (addr) AS (VALUES ('\x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e'::bytea)) 2SELECT 3contract_address, 4sum(amt) * (SELECT p.price/10^p.decimals FROM prices.usd p WHERE p.contract_address = x.contract_address ORDER BY minute DESC LIMIT 1) as usd 5FROM ( 6 SELECT contract_address, value as amt 7 FROM erc20."ERC20_evt_Transfer" 8 WHERE contract_address IN (SELECT addr FROM tokens) 9 AND "to" = '\x1494CA1F11D487c2bBe4543E90080AeBa4BA3C2b' 10 UNION ALL 11 SELECT contract_address, -value as amt 12 FROM erc20."ERC20_evt_Transfer" 13 WHERE contract_address IN (SELECT addr FROM tokens) 14 AND "from" = '\x1494CA1F11D487c2bBe4543E90080AeBa4BA3C2b' 15) x 16GROUP BY 1