theericstoneUsers acquired all chains with only month and year no date copy
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 mar1na-catscatscode / Users acquired all chains with only month and year no date @ https://flipsidecrypto.xyz/mar1na-catscatscode/q/XgZbAxvH9e6d/users-acquired-all-chains-with-only-month-and-year-no-date
-- 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 >= '{{start_date}}' and acquired_time < '{{end_date}}'
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 >= '{{start_date}}' and acquired_time < '{{end_date}}'
group by month_
),
Run a query to Download Data