cybergenlab[DeFi Overview] Active users
Updated 2024-11-16
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
›
⌄
-- forked from [DeFi Overview] Active users @ https://flipsidecrypto.xyz/studio/queries/83e041dc-20ba-4060-a446-2fb3891736be
--Get all metrics for Ethereum ecosystem user growth
with monthly_users as (
select
date_trunc('month', block_timestamp) as time,
count(distinct from_address) as users,
from ethereum.core.fact_transactions as transactions
left join ethereum.core.dim_labels labels on transactions.to_address = labels.address
where block_timestamp >= dateadd(year, -5, date_trunc('month',current_date()))
and block_timestamp < date_trunc('month',current_date())
and label_type in ('defi')
and status = 'SUCCESS'
group by 1
)
select
time,
users as active_users
from monthly_users
QueryRunArchived: QueryRun has been archived