Skip to content
Dune Analytics

@hagaetc / Top 10 token holders

Top 10 token holders

Loading
 

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.

SQL query

1WITH transfers AS (
2    SELECT
3    evt_block_time,
4    tr."from" AS address,
5    -tr.value AS amount,
6    contract_address
7     FROM erc20."ERC20_evt_Transfer" tr
8    WHERE contract_address = CONCAT('\x', substring('{{Token Address}}' from 3))::bytea -- Allow user to input 0x... format and convert to \x... format
9     
10     
11UNION ALL
12
13    SELECT
14    evt_block_time,
15    tr."to" AS address,
16    tr.value AS amount,
17      contract_address
18     FROM erc20."ERC20_evt_Transfer" tr 
19     WHERE contract_address = CONCAT('\x', substring('{{Token Address}}' from 3))::bytea -- Allow user to input 0x... format and convert to \x... format
20     
21)
22
23    SELECT 
24    address,
25    sum(amount/10^decimals) as balance...

SQL query results

Loading