Moetps
    Updated 2024-09-27
    SELECT
    date_trunc(hour,block_timestamp) as hours,
    'Blast' as chain ,
    COUNT(TX_HASH)/360 AS tps
    FROM blast.core.fact_transactions
    GROUP BY hours
    union all
    SELECT
    date_trunc(hour,block_timestamp) as hours,
    'Arbitrum' as chain ,
    COUNT(TX_HASH)/360 AS tps
    FROM Arbitrum.core.fact_transactions
    where block_timestamp > current_date - 6

    GROUP BY hours
    union all
    SELECT
    date_trunc(hour,block_timestamp) as hours,
    'Polygon' as chain ,
    COUNT(TX_HASH)/360 AS tps
    FROM Polygon.core.fact_transactions
    where block_timestamp > current_date - 6

    GROUP BY hours
    union all
    SELECT
    date_trunc(hour,block_timestamp) as hours,
    'Optimism' as chain ,
    COUNT(TX_HASH)/360 AS tps
    FROM Optimism.core.fact_transactions
    where block_timestamp > current_date - 6

    GROUP BY hours

    QueryRunArchived: QueryRun has been archived