SpecterHolder list
Updated 2025-01-03
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
›
⌄
WITH transfers AS (
-- Inflow and outflow data
SELECT
DATE(BLOCK_TIMESTAMP) AS date,
'inflow' AS Flow,
TX_TO AS wallet,
AMOUNT / pow(10, decimal) AS amount,
FROM eclipse.core.fact_transfers
WHERE MINT = 'HgD4Dc6qYCj3UanMDiuC4qANheeTsAvk6DY91B3F8gnL'
AND succeeded = 'TRUE'
UNION ALL
SELECT
DATE(BLOCK_TIMESTAMP) AS date,
'outflow' AS Flow,
TX_FROM AS wallet,
AMOUNT / pow(10, decimal) AS amount,
FROM eclipse.core.fact_transfers
WHERE MINT = 'HgD4Dc6qYCj3UanMDiuC4qANheeTsAvk6DY91B3F8gnL'
AND succeeded = 'TRUE'
)
-- Calculate the current balance for each holder
SELECT
wallet,
ROUND(SUM(CASE WHEN Flow = 'inflow' THEN amount ELSE -amount END)) AS holding_amount
FROM transfers
GROUP BY wallet
ORDER BY holding_amount DESC
limit 100;
QueryRunArchived: QueryRun has been archived