hessBLOCK TIME PER CHAIN AVG
    Updated 2025-03-20
    -- Credited #M-Zamani
    with final as (select date(a.block_timestamp) as date,'Sei' as chain, avg(datediff(second,a.block_timestamp, b.block_timestamp)) as avg_time
    from sei.core.fact_blocks a, sei.core.fact_blocks b
    where a.block_id = b.block_id-1
    and a.block_timestamp::date >= '2023-08-15'
    and b.block_timestamp::date >= '2023-08-15'
    group by 1,2
    UNION
    select date(a.block_timestamp) as date,'Osmosis' as chain, avg(datediff(second,a.block_timestamp, b.block_timestamp)) as avg_time
    from osmosis.core.fact_blocks a, osmosis.core.fact_blocks b
    where a.block_id = b.block_id-1
    and a.block_timestamp::date >= '2023-08-15'
    and b.block_timestamp::date >= '2023-08-15'
    group by 1,2
    UNION
    select date(a.block_timestamp) as date,'Cosmos' as chain, avg(datediff(second,a.block_timestamp, b.block_timestamp)) as avg_time
    from cosmos.core.fact_blocks a, cosmos.core.fact_blocks b
    where a.block_id = b.block_id-1
    and a.block_timestamp::date >= '2023-08-15'
    and b.block_timestamp::date >= '2023-08-15'
    group by 1,2
    UNION
    select date(a.block_timestamp) as date,'Avlanche' as chain, avg(datediff(second,a.block_timestamp, b.block_timestamp)) as avg_time
    from avalanche.core.fact_blocks a, avalanche.core.fact_blocks b
    where a.block_number = b.block_number-1
    and a.block_timestamp::date >= '2023-08-15'
    and b.block_timestamp::date >= '2023-08-15'
    group by 1,2
    UNION
    select date(a.block_timestamp) as date,'Arbitrum' as chain, avg(datediff(second,a.block_timestamp, b.block_timestamp)) as avg_time
    from arbitrum.core.fact_blocks a, arbitrum.core.fact_blocks b
    where a.block_number = b.block_number-1
    and a.block_timestamp::date >= '2023-08-15'
    and b.block_timestamp::date >= '2023-08-15'
    group by 1,2
    UNION
    Last run: 27 days ago
    TYPE
    CHAIN
    AVG(AVG_TIME)
    1
    Other ChainsPolygon2.196239824027
    2
    SeiSei0.427223120135
    3
    Other ChainsOsmosis3.336533096447
    4
    Other ChainsAvlanche2.01674928088
    5
    Other ChainsCosmos6.046364115059
    6
    Other ChainsOptimism2
    7
    Other ChainsArbitrum0.257272522843
    8
    Other ChainsSolana0.434332568528
    8
    311B
    113s