Haisenbergmonad-new-user
    Updated 2025-03-08
    WITH user_first_transaction AS (
    SELECT
    from_address,
    MIN(DATE_TRUNC('hour', block_timestamp)) AS first_transaction_date
    FROM
    monad.testnet.fact_transactions
    WHERE
    block_timestamp >= '2025-02-19'
    GROUP BY
    from_address
    ),
    daily_new_users AS (
    SELECT
    first_transaction_date AS date,
    COUNT(DISTINCT from_address) AS new_users
    FROM
    user_first_transaction
    GROUP BY
    first_transaction_date
    )
    SELECT
    date,
    new_users,
    SUM(new_users) OVER (ORDER BY date) AS total_users
    FROM
    daily_new_users
    ORDER BY
    date DESC;
    Last run: 13 days ago
    DATE
    NEW_USERS
    TOTAL_USERS
    1
    2025-03-08 13:00:00.00056237263467
    2
    2025-03-08 12:00:00.000100457257844
    3
    2025-03-08 11:00:00.00098417247799
    4
    2025-03-08 10:00:00.000283567237958
    5
    2025-03-08 09:00:00.000208247209602
    6
    2025-03-08 08:00:00.000338997188778
    7
    2025-03-08 07:00:00.000186527154879
    8
    2025-03-08 06:00:00.000111577136227
    9
    2025-03-08 05:00:00.000152017125070
    10
    2025-03-08 04:00:00.000174267109869
    11
    2025-03-08 03:00:00.000133037092443
    12
    2025-03-08 02:00:00.000108257079140
    13
    2025-03-08 01:00:00.000201197068315
    14
    2025-03-08 00:00:00.000311797048196
    15
    2025-03-07 23:00:00.000306197017017
    16
    2025-03-07 22:00:00.000311506986398
    17
    2025-03-07 21:00:00.000315036955248
    18
    2025-03-07 20:00:00.000196886923745
    19
    2025-03-07 19:00:00.000265686904057
    20
    2025-03-07 18:00:00.000168276877489
    ...
    422
    17KB
    7s