freemartian2024-03-25 09:21 AM
Updated 2024-04-07
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
›
⌄
WITH near_first AS(
SELECT
min(block_timestamp) AS first_time,
tx_signer
FROM near.core.fact_transactions
GROUP BY 2
),
aptos_first AS(
SELECT
min(block_timestamp) AS first_time,
sender
FROM aptos.core.fact_transactions
GROUP BY 2
)
SELECT
date_trunc('month',first_time::date) AS month,
count(DISTINCT tx_signer) AS user,
'Near' AS chain
FROM near_first
GROUP BY 1
UNION
SELECT
date_trunc('month',first_time::date) AS month,
count(DISTINCT sender) AS user,
'Aptos' AS chain
FROM aptos_first
GROUP BY 1
Auto-refreshes every 1 hour
QueryRunArchived: QueryRun has been archived