MLDZMNpes5
Updated 2022-10-19Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
›
⌄
select
block_timestamp::date as day,
LABEL_TYPE,
count(FROM_ADDRESS) as no_users,
sum(no_users) over (partition by LABEL_TYPE order by day) as grow_rate,
sum(TX_FEE) as fee
from optimism.core.fact_transactions x join optimism.core.dim_labels y on x.TO_ADDRESS= y.address
where label_subtype != 'token_contract'
and LABEL_TYPE not in ('chadmin','operator','token')
and STATUS = 'SUCCESS'
and block_timestamp>=CURRENT_DATE- {{Time_period}}
group by 1,2
Run a query to Download Data