h4wkspeed comparison block time
    Updated 2025-03-05
    -- ETH
    with eth_block as (
    select BLOCK_NUMBER, block_timestamp,
    datediff (second, lag(block_timestamp, 1) over (order by block_timestamp asc), block_timestamp) as block_time
    from ethereum.core.fact_blocks where block_timestamp > '2023-08-01'
    order by block_number
    )
    , eth_final as (
    select
    'Ethereum' as chain,
    date_trunc ('day', block_timestamp) as dates,
    avg (block_time) as avg_block_time

    from eth_block
    group by 1,2
    )

    -- Polygon
    , polygon_block as (
    select BLOCK_NUMBER, block_timestamp,
    datediff (second, lag(block_timestamp, 1) over (order by block_timestamp asc), block_timestamp) as block_time
    from polygon.core.fact_blocks where block_timestamp > '2023-08-01'
    order by block_number
    )
    , polygon_final as (
    select
    'Polygon' as chain,
    date_trunc ('day', block_timestamp) as dates,
    avg (block_time) as avg_block_time

    from polygon_block
    group by 1,2
    )

    -- Avalanche
    , ava_block as (
    Auto-refreshes every 3 hours
    QueryRunArchived: QueryRun has been archived