freemartianFuel - cumulative new users
Updated 2024-10-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
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with users AS (
SELECT
from_address, block_timestamp
FROM ethereum.core.ez_native_transfers
WHERE to_address = '0x19b5cc75846bf6286d599ec116536a333c4c2c14'
AND block_timestamp::date >= '2024-07-08'
UNION
SELECT
from_address, block_timestamp
FROM ethereum.core.ez_token_transfers
WHERE to_address = '0x19b5cc75846bf6286d599ec116536a333c4c2c14'
AND block_timestamp::date >= '2024-07-08'
),
new_users AS (
SELECT
from_address AS user,
min(block_timestamp) AS first_time
FROM users
GROUP BY 1
)
SELECT
date_trunc('hour',first_time) AS time,
count(DISTINCT user) AS new_users,
SUM(new_users) over(ORDER BY time ASC) AS cum_new_users
FROM new_users
GROUP BY 1
Auto-refreshes every 1 hour
QueryRunArchived: QueryRun has been archived