Flipside Community2b) popular apps for first time users polygon
Updated 2024-05-29
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
33
34
35
36
›
⌄
-- forked from 2b) popular apps for first time users arbitrum @ https://flipsidecrypto.xyz/edit/queries/468678d2-0238-43c5-a960-b422ef326833
-- forked from 2b) popular apps for first time users optimism @ https://flipsidecrypto.xyz/edit/queries/4a9f83fb-bc45-4a0f-be85-5fedc4c2c408
-- forked from 2b) popular apps for first time users ethereum @ https://flipsidecrypto.xyz/edit/queries/a91906d7-d916-4f7f-ac54-ee6521bd6576
-- forked from 2b) popular apps for first time users @ https://flipsidecrypto.xyz/edit/queries/c2b4e03c-0b95-4cb4-afb5-df28964f2d0c
-- forked from 2b) popular apps for first time users @ https://flipsidecrypto.xyz/edit/queries/4a6093f9-8096-4ef8-8818-87df6a6daa13
-- forked from 2b @ https://flipsidecrypto.xyz/edit/queries/956394e3-fe4f-4801-b8b3-68e508994b63
with addresses as
(
select from_address, min(block_timestamp) as first_transaction_sent
from polygon.core.fact_transactions
group by from_address
having first_transaction_sent >= '{{Start_date}}'
),
first_transaction as
(
select * from polygon.core.fact_transactions
where 1=1
and block_timestamp >= '{{Start_date}}'
and from_address in ( select from_address from addresses)
qualify(row_number() over (partition by from_address order by block_timestamp asc)=1)
),
top_200 as (
select dl.project_name,
count(distinct ft.from_address) as number_of_users,
row_number() over (order by number_of_users desc) as rn
from first_transaction ft
inner join polygon.core.dim_labels dl
on ft.to_address=dl.address
where dl.label_type not in ('token','cex','chadmin')
group by dl.project_name
QueryRunArchived: QueryRun has been archived