bachimiso1
Updated 2022-09-19
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
›
⌄
with ethereum_users as (
select date(date_trunc('week', block_timestamp)) as Week, count(distinct origin_from_address) as no_of_users from
ethereum.core.fact_event_logs
where topics[0] = lower('0x077511a636ba1f10551cc7b89c13ff66a6ac9344e8a917527817a9690b15af7a')
and tx_status = 'SUCCESS'
group by 1
),
arbitrum_users as (
select date(date_trunc('week', block_timestamp)) as Week, count(distinct origin_from_address) as no_of_users from
arbitrum.core.fact_event_logs
where topics[0] = lower('0x077511a636ba1f10551cc7b89c13ff66a6ac9344e8a917527817a9690b15af7a')
and tx_status = 'SUCCESS'
group by 1
),
polygon_users as (
select date(date_trunc('week', block_timestamp)) as Week, count(distinct origin_from_address) as no_of_users from
polygon.core.fact_event_logs
where topics[0] = lower('0x077511a636ba1f10551cc7b89c13ff66a6ac9344e8a917527817a9690b15af7a')
and tx_status = 'SUCCESS'
group by 1
),
avalanche_users as (
select date(date_trunc('week', block_timestamp)) as week, count(distinct origin_from_address) as no_of_users from
avalanche.core.fact_event_logs
where topics[0] = lower('0x077511a636ba1f10551cc7b89c13ff66a6ac9344e8a917527817a9690b15af7a')
and tx_status = 'SUCCESS'
group by 1
)
select * , 'Ethereum' as Chain from ethereum_users UNION
select * , 'Arbitrum' as Chain from arbitrum_users UNION
select * , 'Polygon' as Chain from polygon_users UNION
select * , 'Avalanche' as Chain from avalanche_users
Run a query to Download Data