datavortexactive contracts after launch
    Updated 2025-02-22
    WITH first_seen_contracts AS (
    SELECT
    contract_address,
    MIN(block_timestamp) AS first_seen
    FROM monad.testnet.fact_event_logs
    WHERE contract_address IS NOT NULL
    AND tx_succeeded = TRUE
    GROUP BY contract_address
    )

    SELECT
    DATE_TRUNC('hour', e.block_timestamp) AS hour,
    COUNT(DISTINCT e.contract_address) AS new_contracts
    FROM monad.testnet.fact_event_logs e
    JOIN first_seen_contracts fsc
    ON e.contract_address = fsc.contract_address
    WHERE e.block_timestamp >= '2025-02-19'
    AND fsc.first_seen >= '2025-02-19'
    AND e.tx_succeeded = TRUE
    GROUP BY 1
    ORDER BY hour DESC;






    /*
    SELECT
    DATE_TRUNC('hour', block_timestamp) AS hour,
    COUNT(DISTINCT contract_address) AS active_contracts
    FROM
    monad.testnet.fact_event_logs

    WHERE
    contract_address IS NOT NULL
    Last run: 2 months ago
    HOUR
    NEW_CONTRACTS
    1
    2025-02-22 02:00:00.0001222
    2
    2025-02-22 01:00:00.0001450
    3
    2025-02-22 00:00:00.0001478
    4
    2025-02-21 23:00:00.0001627
    5
    2025-02-21 22:00:00.0001718
    6
    2025-02-21 21:00:00.0002920
    7
    2025-02-21 20:00:00.0004645
    8
    2025-02-21 19:00:00.0003041
    9
    2025-02-21 18:00:00.0003445
    10
    2025-02-21 17:00:00.0003684
    11
    2025-02-21 16:00:00.0003663
    12
    2025-02-21 15:00:00.0004623
    13
    2025-02-21 14:00:00.0005013
    14
    2025-02-21 13:00:00.0005401
    15
    2025-02-21 12:00:00.0005344
    16
    2025-02-21 11:00:00.0005309
    17
    2025-02-21 10:00:00.0005386
    18
    2025-02-21 09:00:00.0005010
    19
    2025-02-21 08:00:00.0004834
    20
    2025-02-21 07:00:00.0004275
    75
    2KB
    1s