brian-terraAurora - New user Count copy copy
Updated 2023-10-16
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
›
⌄
⌄
-- forked from Aurora - New user Count copy @ https://flipsidecrypto.xyz/edit/queries/f19a0421-6055-4e0a-b954-4f044f67ed61
-- forked from Aurora - New user Count @ https://flipsidecrypto.xyz/edit/queries/b27283c8-fde2-4066-bdd3-a91b70caf147
-- forked from Aurora - Daily Transaction Count copy @ https://flipsidecrypto.xyz/edit/queries/c095a177-78aa-4611-bfcc-8c3a3f758c43
WITH qmain as (
select date_trunc('day',block_timestamp) as day,
tx_hash,
from_address,
row_number() OVER (partition by from_address order by day asc) as rn
from aurora.core.fact_transactions
)
select count(from_address) new_user_count
from qmain
where rn = 1
/*
aurora.core.fact_blocks - 96m
aurora.core.fact_transactions - 55m
aurora.core.fact_receipts - 10m
aurora.core.fact_logs - 24m
*/
Run a query to Download Data