Flipside CommunityUsers acquired all chains with only month and year no date
Updated 2024-01-09
999
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
›
⌄
-- forked from Sandesh / Users acquired all chains @ https://flipsidecrypto.xyz/Sandesh/q/5N-RAQceGusP/users-acquired-all-chains
with polygon as (
with acquired_transaction as (
select from_address,(block_timestamp) as acquired_time
from polygon.core.fact_transactions
where nonce=1
-- group by from_address
)
select
date_trunc('month',acquired_time) as month_,
count(distinct from_address) as acquired_users,
'polygon' as chain
from acquired_transaction
where acquired_time >= '2023-01-01' and acquired_time < '2024-01-01'
group by month_
),
ethereum as (
with acquired_transaction as (
select from_address,(block_timestamp) as acquired_time
from ethereum.core.fact_transactions
where nonce=1
-- group by from_address
)
select date_trunc('month',acquired_time) as month_,
count(distinct from_address) as acquired_users ,'ethereum' as chain
from acquired_transaction
where acquired_time >= '2023-01-01' and acquired_time < '2024-01-01'
group by month_
),
optimism as (
with acquired_transaction as (
QueryRunArchived: QueryRun has been archived