kiacryptodaily tps - layer 2
Updated 2023-03-10Copy Reference Fork
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
›
⌄
with arbi_tps as (
select
date_trunc('second', block_timestamp) as sec,
count(distinct tx_hash) as tx_count
from arbitrum.core.fact_transactions
where
block_timestamp::date >= '2023-01-01' and
status = 'SUCCESS'
group by 1
),
opti_tps as (
select
date_trunc('second', block_timestamp) as sec,
count(distinct tx_hash) as tx_count
from optimism.core.fact_transactions
where
block_timestamp::date >= '2023-01-01' and
status = 'SUCCESS'
group by 1
),
poly_tps as (
select
date_trunc('second', block_timestamp) as sec,
count(distinct tx_hash) as tx_count
from polygon.core.fact_transactions
where
block_timestamp::date >= '2023-01-01' and
status = 'SUCCESS'
group by 1
)
select
date_trunc('day', sec) as date,
avg(tx_count) as avg_tps,
avg(avg_tps) over (order by date, date rows between 6 preceding and current row) as ma7_avg_tps,
'Arbitrum' as blockchain
Run a query to Download Data