yasmin-n-d-r-hnew user vs cumulative user in sol eth flow
Updated 2022-06-18
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
with flow_data as
(SELECT Date(first_use) as day, count(DISTINCT payer) as new_users, sum(new_users) over (order by day) as cumulative_users, 'flow' as chain from
(SELECT payer, min(block_timestamp) as first_use from flow.core.fact_transactions
where block_timestamp >= '2022-01-01'
GROUP by 1 )
GROUP by 1 ),
eth_data as
(SELECT Date(first_use) as day, count(DISTINCT payer) as new_users, sum(new_users) over (order by day) as cumulative_users,'eth' as chain from
(SELECT from_address as payer, min(block_timestamp) as first_use from ethereum_core.fact_transactions
where block_timestamp >= '2022-01-01'
GROUP by 1 )
GROUP by 1 ),
sol_data as
(SELECT Date(first_use) as day, count(DISTINCT payer) as new_users, sum(new_users) over (order by day) as cumulative_users,'SOL' as chain from
(SELECT signers[0] as payer, min(block_timestamp) as first_use from solana.fact_transactions
where block_timestamp >= '2022-01-01'
GROUP by 1 )
GROUP by 1 )
SELECT * FROM sol_data
UNION ALL
SELECT * FROM eth_data
UNION ALL
SELECT * from flow_data
Run a query to Download Data