HadisehDaily
    Updated 2025-02-28
    WITH daily_metrics AS (
    SELECT
    DATE_TRUNC('day', BLOCK_TIMESTAMP) AS transaction_day,
    COUNT(DISTINCT TX_HASH) AS daily_tx_count,
    COUNT(DISTINCT FROM_ADDRESS) AS daily_user_count,
    SUM(TX_FEE) AS daily_fee_total
    FROM boba.core.fact_transactions
    WHERE BLOCK_TIMESTAMP >= '2025-01-01'
    GROUP BY 1
    ),
    user_first_tx AS (
    SELECT
    FROM_ADDRESS AS user_address,
    MIN(BLOCK_TIMESTAMP) AS first_transaction_date
    FROM boba.core.fact_transactions
    WHERE BLOCK_TIMESTAMP >= '2025-01-01'
    GROUP BY 1
    ),
    user_activity AS (
    SELECT
    uft.user_address,
    DATE_TRUNC('day', uft.first_transaction_date) AS cohort_period,
    COUNT(DISTINCT DATE_TRUNC('day', t.BLOCK_TIMESTAMP)) AS active_day_count,
    MAX(DATEDIFF('day', uft.first_transaction_date, t.BLOCK_TIMESTAMP)) AS retention_days
    FROM user_first_tx uft
    JOIN boba.core.fact_transactions t
    ON uft.user_address = t.FROM_ADDRESS
    WHERE t.BLOCK_TIMESTAMP >= '2025-01-01'
    GROUP BY 1, 2
    ),
    cohort_analysis AS (
    SELECT
    cohort_period,
    COUNT(DISTINCT user_address) AS cohort_user_count,
    SUM(CASE WHEN retention_days >= 1 THEN 1 ELSE 0 END) AS day1_retained
    FROM user_activity
    Last run: 17 days ago
    TRANSACTION_DAY
    DAILY_TX_COUNT
    DAILY_USER_COUNT
    DAILY_FEE_TOTAL
    AVG_TX_FEE
    TX_GROWTH_RATE
    USER_GROWTH_RATE
    TXS_PER_USER
    1
    2025-01-01 00:00:00.000464075120.032783565887.064357937e-790.638672
    2
    2025-01-02 00:00:00.000466123660.06677029950.0000014324701690.441744-28.515625127.355191
    3
    2025-01-03 00:00:00.000494617050.091117439940.0000018422077996.1121692.62295170.157447
    4
    2025-01-04 00:00:00.000474926400.038601468078.127993781e-7-3.980914-9.21985874.20625
    5
    2025-01-05 00:00:00.000482256760.047237293679.795187905e-71.5434185.62571.338757
    6
    2025-01-06 00:00:00.000462113240.047597668310.000001030007321-4.176257-52.071006142.626543
    7
    2025-01-07 00:00:00.000480636810.051479270690.0000010710790154.007704110.18518570.577093
    8
    2025-01-08 00:00:00.000469265240.045589133989.715111873e-7-2.365645-23.05433289.553435
    9
    2025-01-09 00:00:00.000473153800.049418082870.0000010444485440.828965-27.480916124.513158
    10
    2025-01-10 00:00:00.000451793700.024664108985.459197631e-7-4.514425-2.631579122.105405
    11
    2025-01-11 00:00:00.000445332100.0076307635471.713507634e-7-1.429868-43.243243212.061905
    12
    2025-01-12 00:00:00.000444781490.0078203974311.758261934e-7-0.123504-29.047619298.510067
    13
    2025-01-13 00:00:00.000477302060.061029689110.000001278644237.3114838.255034231.699029
    14
    2025-01-14 00:00:00.000453912940.015671274973.452507099e-7-4.90048242.718447154.391156
    15
    2025-01-15 00:00:00.000457753000.029517691026.448430588e-70.8459832.040816152.583333
    16
    2025-01-16 00:00:00.000451702540.027994312796.197545449e-7-1.321682-15.333333177.834646
    17
    2025-01-17 00:00:00.000451902080.038455023968.509631326e-70.044277-18.110236217.259615
    18
    2025-01-18 00:00:00.000452151640.079826985860.0000017654978630.055322-21.153846275.70122
    19
    2025-01-19 00:00:00.000475591120.22338142540.0000046969327675.18412-31.707317424.633929
    20
    2025-01-20 00:00:00.000462521260.15276165570.000003302811893-2.74816512.5367.079365
    58
    6KB
    4s