0xHaM-dWINK holders daily balance
Updated 2025-02-26
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 eventTb as (
select
block_timestamp,
to_address as wallet,
amount
from avalanche.core.ez_token_transfers
where contract_address = '0x7698a5311da174a95253ce86c21ca7272b9b05f8'
union all
select
block_timestamp,
from_address as wallet,
amount*-1 as amount
from avalanche.core.ez_token_transfers
where contract_address = '0x7698a5311da174a95253ce86c21ca7272b9b05f8'
)
,
balance_over_time as (
select
block_timestamp::Date as days,
wallet,
sum(amount) as total_amount
from eventTb
group by 1,2
)
,
cleaned_null_days as (
select
days,
wallet,
sum(total_amount) over (partition by wallet order by days) as balance,
lead(days, 1, current_date) over (partition by wallet order by days) as next_days
from balance_over_time
)
,
datet as (
select
QueryRunArchived: QueryRun has been archived