datavortexabstract-harlequin
    Updated 2025-05-04
    WITH WeeklyData AS (
    SELECT
    DATE_TRUNC('week', block_timestamp) AS weekly,
    tx_hash,
    owner_id
    FROM near.defi.fact_intents
    WHERE receipt_succeeded = TRUE
    ),
    WeeklyStats AS (
    SELECT
    weekly,
    COUNT(DISTINCT tx_hash) AS intent_transactions,
    COUNT(DISTINCT owner_id) AS active_users
    FROM WeeklyData
    GROUP BY weekly
    )
    SELECT
    weekly AS "Week",
    intent_transactions AS "Intent Transactions",
    active_users AS "Active Users",
    SUM(intent_transactions) OVER (ORDER BY weekly) AS "Cumulative Transactions",
    SUM(active_users) OVER (ORDER BY weekly) AS "Cumulative Users"
    FROM WeeklyStats
    ORDER BY weekly;
    Last run: 17 days ago
    Week
    Intent Transactions
    Active Users
    Cumulative Transactions
    Cumulative Users
    1
    2024-11-04 00:00:00.000116754116754
    2
    2024-11-11 00:00:00.000556551723109
    3
    2024-11-18 00:00:00.0004951082218217
    4
    2024-11-25 00:00:00.0003318855536302
    5
    2024-12-02 00:00:00.00020591287595430
    6
    2024-12-09 00:00:00.00012692078864637
    7
    2024-12-16 00:00:00.000145830310322940
    8
    2024-12-23 00:00:00.0001175219114971159
    9
    2024-12-30 00:00:00.000922181124191340
    10
    2025-01-06 00:00:00.0001162168135811508
    11
    2025-01-13 00:00:00.0002183326157641834
    12
    2025-01-20 00:00:00.0002749283185132117
    13
    2025-01-27 00:00:00.0001395222199082339
    14
    2025-02-03 00:00:00.0002216295221242634
    15
    2025-02-10 00:00:00.0002376309245002943
    16
    2025-02-17 00:00:00.0002375250268753193
    17
    2025-02-24 00:00:00.0005325304322003497
    18
    2025-03-03 00:00:00.0002982285351823782
    19
    2025-03-10 00:00:00.0003337275385194057
    20
    2025-03-17 00:00:00.0002902308414214365
    26
    1KB
    2s