zkpweek active rate
Updated 2023-08-02
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
›
⌄
with
x as (
SELECT DISTINCT
contract,count(DISTINCT date_trunc('week', TIMESTAMP::date)) as active_weeks
from
external.tokenflow_starknet.decoded_transactions
where
CHAIN_ID = 'mainnet'
group by
1
)
SELECT
count(DISTINCT contract) as wallets,
case
when active_weeks = 1 or active_weeks = 0 then '1 week'
when active_weeks > 2
and active_weeks < 6 then '2-5 weeks'
when active_weeks > 5
and active_weeks < 11 then '6-10 weeks'
when active_weeks > 10
and active_weeks < 51 then '11-50 weeks'
when active_weeks > 50 then '>50 weeks'
end as "weeks rate"
from
x
GROUP by
2
Run a query to Download Data