freemartianBedrock Block Performance
    Updated 2023-09-29

    with dates as (
    select
    timestampdiff('day', '2023-06-06 16:00:00.000', current_date) as X_days_after_bedrock,
    '2023-06-06 16:00:00.000' as Bedrock_live,
    current_date - (2*X_days_after_bedrock) as X_days_before_bedrock
    )

    SELECT AVG(tx_count) "Average transactions Per Block",
    (CASE
    WHEN block_timestamp < '2023-06-06 16:00:00.000' THEN 'Before Bedrock'
    when block_timestamp > '2023-06-06 16:00:00.000' then 'After Bedrock' END
    ) AS "Label"
    FROM optimism.core.fact_blocks
    GROUP BY "Label"






    Run a query to Download Data