yasmin-n-d-r-hL1 -2
Updated 2023-01-20Copy Reference Fork
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
›
⌄
select
date_trunc('day', BLOCK_TIMESTAMP) as day,
'Optimism' as network,
count (distinct sender) as new_users
from
(
select
distinct FROM_ADDRESS as sender,
min(block_timestamp) as BLOCK_TIMESTAMP
from
Optimism.core.fact_transactions
WHERE
tx_hash is not null
and STATUS = 'SUCCESS'
group by
1
)
where
day >= CURRENT_DATE - 60
group by
1
union all
select
date_trunc('day', BLOCK_TIMESTAMP) as day,
'Arbitrum' as network,
count (distinct sender) as new_users
from
(
select
distinct FROM_ADDRESS as sender,
min(block_timestamp) as BLOCK_TIMESTAMP
from
Arbitrum.core.fact_transactions
WHERE
tx_hash is not null
and STATUS = 'SUCCESS'
Run a query to Download Data