Moe10 op por
Updated 2022-10-12Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
›
⌄
select
date_trunc(week,block_timestamp):: date as weeks,
PROJECT_NAME,
count (distinct TX_HASH) as num_txs,
count (distinct origin_from_address) as num_users,
row_number()over(partition by weeks order by num_users desc) as n
from
optimism.core.fact_event_logs l,optimism.core.dim_labels b
where tx_status = 'SUCCESS'
and origin_to_address = address
and contract_address = '0x4200000000000000000000000000000000000042' --OP
and PROJECT_NAME != 'optimism'
group by 1,2
qualify n <= 10
order by 1
Run a query to Download Data