AmbassadorsEVM Block Time
Updated 2024-04-26
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
-- Credited #M-Zamani
with
final as (
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 ALL
select date(a.block_timestamp) as date,'Optimism' as chain, avg(datediff(second,a.block_timestamp, b.block_timestamp)) as avg_time
from optimism.core.fact_blocks a, optimism.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 ALL
select date(a.block_timestamp) as date,'Ethereum' as chain, avg(datediff(second,a.block_timestamp, b.block_timestamp)) as avg_time
from ethereum.core.fact_blocks a, ethereum.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 ALL
select date(a.block_timestamp) as date,'Polygon' as chain, avg(datediff(second,a.block_timestamp, b.block_timestamp)) as avg_time
from polygon.core.fact_blocks a, polygon.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 ALL
select date(a.block_timestamp) as date,'BSC' as chain, avg(datediff(second,a.block_timestamp, b.block_timestamp)) as avg_time
from bsc.core.fact_blocks a, bsc.core.fact_blocks b
Auto-refreshes every 24 hours
QueryRunArchived: QueryRun has been archived