nickpayiatis_Number of Wallets
Updated 2023-01-03
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
›
⌄
with daily as (
select bl.block_timestamp::date as day, count(acc.address) as all_wallets,
sum(case when acc.account_closed = FALSE then 1 else 0 end) as non_closed ,
sum(case when acc.balance >= 1 then 1 else 0 end) as wallets_with_balance
from algorand.account acc
left join algorand.block bl on acc.created_at = bl.block_id
group by bl.block_timestamp::date
order by day asc
)
select day,
sum(all_wallets) over (order by day asc rows between unbounded preceding and current row) as all_wallets,
sum(non_closed) over (order by day asc rows between unbounded preceding and current row) as non_closed,
sum(wallets_with_balance) over (order by day asc rows between unbounded preceding and current row) as wallets_1_algo_balance
from daily
Run a query to Download Data