Mrftitechnological-violet
    Updated 10 hours ago
    WITH block_data AS (
    SELECT
    block_timestamp,
    count(DISTINCT tx_hash) as tx_count,
    LEAD(block_timestamp) OVER (ORDER BY block_timestamp) as next_block_timestamp
    FROM
    monad.testnet.fact_transactions
    where block_timestamp > '2025-02-19 15:00:00.000'

    GROUP BY
    block_timestamp
    )

    SELECT
    AVG(tx_count / NULLIF(DATEDIFF('second', block_timestamp, next_block_timestamp), 0)) AS "AVG TPS",
    MAX(tx_count / NULLIF(DATEDIFF('second', block_timestamp, next_block_timestamp), 0)) AS "MAX TPS"
    FROM
    block_data
    WHERE
    next_block_timestamp IS NOT NULL
    Last run: about 10 hours agoAuto-refreshes every 12 hours
    AVG TPS
    MAX TPS
    1
    160.0109422537057653
    1
    25B
    236s