LordkingHolders List ronin
Updated 2025-04-02Copy Reference Fork
999
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 dataronin AS (
with totalsupplytbl as (
with general as (
with tbl3 as (
with tbl as (
select
to_address as "Address",
sum(RAW_AMOUNT/pow(10,18)) as "Input"
from ronin.core.ez_token_transfers
where contract_address = lower ('0x97a9107c1793bc407d6f527b77e7fff4d812bece')
group by
1
),
tbl2 as (
select
from_address as "Address",
sum(RAW_AMOUNT/pow(10,18)) as "Output"
from ronin.core.ez_token_transfers
where contract_address = lower ('0x97a9107c1793bc407d6f527b77e7fff4d812bece')
group by 1
)
select
tbl."Address",
case
when "Input" is null then 0
else "Input"
end as "Input tokens",
case
when "Output" is null then 0
else "Output"
end as "Output tokens"
from tbl left join tbl2 on tbl."Address" = tbl2."Address"
)
QueryRunArchived: QueryRun has been archived