Josh956Arbitrum stats
Updated 2023-01-15Copy 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
›
⌄
with a as (select 'Arbitrum' as chain,
sum(eth_value) as "Transaction volume ETH",
avg(eth_value) as "Avg transaction volume ETH",
median(eth_value) as "Median transaction volume ETH",
count(distinct tx_hash) as "Transaction Count",
count(distinct block_hash) as "Block Count",
count (distinct from_address) as "Unique Senders",
sum(tx_fee) as "TX fee",
avg(tx_fee) as "Avg fee",
median(tx_fee) as "Median fee amount"
from arbitrum.core.fact_transactions
where block_timestamp>='2022-08-01'
and eth_value>.01
group by 1
),
b as (select 'Optimism' as chain,
sum(eth_value) as "Transaction volume ETH",
avg(eth_value) as "Avg transaction volume ETH",
median(eth_value) as "Median transaction volume ETH",
count(distinct tx_hash) as "Transaction Count",
count(distinct block_hash) as "Block Count",
count (distinct from_address) as "Unique Senders",
sum(tx_fee) as "TX fee",
avg(tx_fee) as "Avg fee",
median(tx_fee) as "Median fee amount"
from optimism.core.fact_transactions
where block_timestamp>='2022-08-01'
and eth_value>.01
group by 1
)
select * from a
UNION ALL
Select * from b
Run a query to Download Data