CryptoIcicleEVM - 4. The “Flippening” Comparison - TPS
Updated 2023-03-02
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
›
⌄
-- It finally happened. The great Flip everyone’s been waiting for — Optimism and Arbitrum have officially surpassed Ethereum in combined transaction volume.
-- (What, you were expecting some other flippening?)
-- Use this historic event to compare and contrast these two major L2 chains.
-- Include metrics such as total and average transaction volume, average transaction size, active users, new users added, and anything else you find relevant to this comparison.
-- USDC Payouts:
-- Rank USDC amount
-- First place 400
-- Second place 150
-- Third place 150
-- 4th through 15th place 75
-- 16th through 21st place 50
-- Payments are issued on the Ethereum mainnet chain.
with op as (
with tps as (
select
block_timestamp::date as date,
'optimum' as type,
sum(n_txns_secs) as sum_tps,
avg(n_txns_secs) as avg_tps,
max(n_txns_secs) as max_tps,
sum(sum_tps) over (order by date asc rows between unbounded preceding and current row) as cumulative_sum_tps,
avg(avg_tps) over (order by date asc rows between unbounded preceding and current row) as overall_avg_tps,
max(max_tps) over (order by date asc rows between unbounded preceding and current row) as overall_max_tps
from(
select
block_timestamp,
count(distinct tx_hash) as n_txns_secs
from optimism.core.fact_transactions
where block_timestamp >= CURRENT_DATE - {{n_days}}
group by block_timestamp
) group by date
)
select * from tps
order by date desc
Run a query to Download Data