defi__joshDaily Network Activity Metrics (since launch)
    Updated 7 days ago
    -- Daily block production
    -- Daily transaction count
    -- Average gas usage per transaction
    -- Average transaction fees


    WITH daily_stats AS (
    SELECT
    DATE_TRUNC('day', block_timestamp) as date,
    COUNT(DISTINCT block_number) as blocks_created,
    COUNT(DISTINCT tx_hash) as total_transactions,
    AVG(gas_used) as avg_gas_used,
    AVG(tx_fee) as avg_tx_fee
    FROM mezo.testnet.fact_transactions
    WHERE block_timestamp >= (
    SELECT MIN(block_timestamp)
    FROM mezo.testnet.fact_transactions
    )
    GROUP BY 1
    ORDER BY 1
    )

    SELECT
    date as "day",
    blocks_created as "no. of blocks created",
    total_transactions as "no. of tx per day",
    ROUND(avg_tx_fee, 6) as "avg tx fee",
    ROUND(avg_gas_used, 2) as "avg gas used",
    FROM daily_stats;
    Last run: 7 days ago
    day
    no. of blocks created
    no. of tx per day
    avg tx fee
    avg gas used
    1
    2025-03-29 00:00:00.000195324690.000011197671.16
    2
    2025-04-01 00:00:00.000176819480427389.68
    3
    2025-04-02 00:00:00.000233226290.000212425495.23
    4
    2025-03-28 00:00:00.0005906900
    5
    2025-03-30 00:00:00.000192633330216628.69
    6
    2025-03-31 00:00:00.000136014260380418.66
    7
    2025-04-07 00:00:00.000408645780.000019177061.01
    8
    2025-04-03 00:00:00.000300033370.000002198759.68
    9
    2025-04-06 00:00:00.000410445320.000001155757.58
    10
    2025-04-08 00:00:00.0007905121790224822.95
    11
    2025-04-04 00:00:00.000477852240.000001139228.34
    12
    2025-04-05 00:00:00.000408645630140671.92
    13
    2025-04-10 00:00:00.000652593640310831.43
    14
    2025-04-09 00:00:00.0008984133640.000001248981.95
    14
    745B
    1s