rachAverage Gas Fee weekly
Updated 2024-05-16Copy 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
eth_tx_gas_fees AS (
SELECT
'ethereum' AS dataset,
GAS_PRICE * GAS_USED AS gas_fee
FROM
ethereum.core.fact_transactions
WHERE
BLOCK_TIMESTAMP >= CURRENT_DATE() - 7
),
polygon_tx_gas_fees AS (
SELECT
'polygon' AS dataset,
GAS_PRICE * GAS_USED AS gas_fee
FROM
polygon.core.fact_transactions
WHERE
BLOCK_TIMESTAMP >= CURRENT_DATE() - 7
),
bsc_tx_gas_fees AS (
SELECT
'bsc' AS dataset,
GAS_PRICE * GAS_USED AS gas_fee
FROM
bsc.core.fact_transactions
WHERE
BLOCK_TIMESTAMP >= CURRENT_DATE() - 7
),
avalanche_tx_gas_fees AS (
SELECT
'avalanche' AS dataset,
GAS_PRICE * GAS_USED AS gas_fee
FROM
avalanche.core.fact_transactions
WHERE
BLOCK_TIMESTAMP >= CURRENT_DATE() - 7
QueryRunArchived: QueryRun has been archived