LABEL_TYPE | TYPE | TOTAL_USERS | |
---|---|---|---|
1 | dex | New Users | 120363 |
2 | bridge | New Users | 120353 |
3 | bridge | Old Users | 110315 |
4 | dex | Old Users | 30564 |
5 | defi | Old Users | 23744 |
6 | dapp | Old Users | 12427 |
7 | dapp | New Users | 8654 |
8 | defi | New Users | 6859 |
9 | nft | Old Users | 1616 |
10 | games | Old Users | 88 |
11 | nft | New Users | 64 |
12 | games | New Users | 14 |
SniperBreakdown of Active users and New users by Project Type
Updated 2025-02-10
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
30
31
32
›
⌄
With tbl1 AS (
SELECT
block_timestamp,
-- project_name,
label_type,
from_address,
FROM avalanche.core.fact_transactions a
JOIN avalanche.core.dim_labels b on a.to_address=b.address
WHERE
block_timestamp::date >= current_date - 31
and LABEL_TYPE not in ('cex','token','chadmin','operator','token_contract')
and STATUS = 'SUCCESS'
),
new_user AS (
SELECT
from_address,
MIN(block_timestamp) AS min_date
FROM
avalanche.core.fact_transactions
GROUP BY 1
having min_date >= current_date - 31
)
select label_type,
case when from_address in (select from_address from new_user)
then 'New Users' else 'Old Users' end as type,
count(DISTINCT from_address) AS total_users
from tbl1
group by 1,2
order by 3 desc
Last run: 2 months ago
12
318B
22s