CryptoIcicleEVM - 4. The “Flippening” Comparison - Tx Metrics
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 eth_price as (
select
date_trunc('day', hour) as date,
avg(price) as price
from ethereum.core.fact_hourly_token_prices
where symbol = 'WETH' and hour >= CURRENT_DATE - {{n_days}}
group by date
),
txns as (
select
t.*,
t.tx_fee * (price) as gas_used_usd
from optimism.core.fact_transactions t
join eth_price p on t.block_timestamp::date = p.date
)
select
block_timestamp::date as date,
'optimism' as type,
count(distinct from_address) as n_users,
count(distinct tx_hash) as tx_frequncy,
Run a query to Download Data