mmdrezaTop 20 Wallets With Most $FLOW Balance
Updated 2022-11-27Copy Reference Fork
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
33
34
35
36
›
⌄
with balance_tab as (
select
--date_trunc('day', block_timestamp) as date,
event_data:to as users,
sum(event_data:amount) as volume
from flow.core.fact_events
where
event_contract = 'A.1654653399040a61.FlowToken' and
event_type = 'TokensDeposited' and
tx_succeeded = 'TRUE' and
event_data:to != 'null' and
event_data:amount is not null
group by 1
union all
select
--date_trunc('day', block_timestamp) as date,
event_data:from as users,
-sum(event_data:amount) as volume
from flow.core.fact_events
where
event_contract = 'A.1654653399040a61.FlowToken' and
event_type = 'TokensWithdrawn' and
tx_succeeded = 'TRUE' and
event_data:from != 'null' and
event_data:amount is not null
group by 1
)
select
users,
sum(volume) as balance
from balance_tab
group by 1
order by 2 desc
Run a query to Download Data