afonsoTop 10 LUNA holders
Updated 2023-04-13Copy 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
›
⌄
with t1 as (
select
sender as wallet_address,
sum(amount::number/pow(10, 6)) as total_amount
from terra.core.ez_transfers
where tx_succeeded = 1
and currency = 'uluna'
and amount is not null
group by wallet_address
union all
select
receiver as wallet_address,
-sum(amount::number/pow(10, 6)) as total_amount
from terra.core.ez_transfers
where tx_succeeded = 1
and currency = 'uluna'
group by wallet_address
)
select
wallet_address,
sum(total_amount::number) as total_balance
from t1
group by wallet_address
having total_balance > 0
order by total_balance desc
limit 10
Run a query to Download Data