vendettaRelative Average Gas Price
Updated 2023-03-09
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
›
⌄
WITH
arbitrum as (
SELECT
date_trunc('day', block_timestamp) as _date,
avg(GAS_PRICE_PAID) as "Arbitrum Avg Gas"
FROM
arbitrum.core.fact_transactions
WHERE
date_trunc('day', block_timestamp) >= current_date() - 365
GROUP BY
1
),
optimism as (
SELECT
date_trunc('day', block_timestamp) as _date,
avg(GAS_PRICE) as "Optimism Avg Gas"
FROM
optimism.core.fact_transactions
WHERE
date_trunc('day', block_timestamp) >= current_date() - 365
GROUP BY
1
)
SELECT
*
FROM
arbitrum a
JOIN optimism p ON a._date = p._date
ORDER BY
a._date DESC
Run a query to Download Data