messariNEAR Top Dapps by Addresses from Power Addresses
Updated 2023-07-03
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
›
⌄
with contracts as (
select
distinct t.tx_receiver as address,
case
when l.project_name is not null then l.project_name
else t.tx_receiver
end as contract_group
from
near.core.fact_transactions t
left join
near.core.dim_address_labels l
on t.tx_receiver = l.address
),
power_users as (
select
tx_signer as address,
count(distinct date(block_timestamp)) as active_days
from near.core.fact_transactions
where date(block_timestamp) between '{{Start_date}}' and '{{End_date}}'
group by 1
having active_days > {{Active_days}}
),
top_dapps as (
select
c.contract_group as dapp,
count(distinct t.tx_signer) as address
from
near.core.fact_transactions t
join
power_users
on t.tx_signer = power_users.address
left join
contracts c
on t.tx_receiver = c.address
where date(t.block_timestamp) between '{{Start_date}}' and '{{End_date}}'
group by 1
Run a query to Download Data