BLOCKCHAIN | AVG_TX_FEE_USD | FEE_RANK | |
---|---|---|---|
1 | ethereum | 0.2506909077 | 1 |
2 | solana | 0.009945875702 | 2 |
3 | near | 0.001472646452 | 3 |
4 | aptos | 0.0008409841819 | 4 |
aureasarsanedesaptos gas 3
Updated 10 hours ago
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 fees AS (
-- Aptos fees with price
SELECT
'aptos' as blockchain,
AVG(t.gas_used * t.gas_unit_price * p.price)/pow(10,8) as avg_tx_fee_usd
FROM aptos.core.fact_transactions t
LEFT JOIN aptos.price.ez_prices_hourly p
ON DATE_TRUNC('hour', t.block_timestamp) = p.hour
AND p.symbol = 'APT'
WHERE t.block_timestamp >= CURRENT_DATE - INTERVAL '{{days}} days'
AND t.success = TRUE
UNION ALL
-- Ethereum fees with price
SELECT
'ethereum' as blockchain,
AVG(t.tx_fee * p.price) as avg_tx_fee_usd
FROM ethereum.core.fact_transactions t
LEFT JOIN ethereum.price.ez_prices_hourly p
ON DATE_TRUNC('hour', t.block_timestamp) = p.hour
AND p.symbol = 'ETH'
WHERE t.block_timestamp >= CURRENT_DATE - INTERVAL '{{days}} days'
AND t.status = 'SUCCESS'
UNION ALL
-- Near fees with price
SELECT
'near' as blockchain,
AVG((t.transaction_fee / POW(10, 24)) * p.price) as avg_tx_fee_usd
FROM near.core.fact_transactions t
LEFT JOIN near.price.ez_prices_hourly p
ON DATE_TRUNC('hour', t.block_timestamp) = p.hour
AND p.symbol = 'NEAR'
WHERE t.block_timestamp >= CURRENT_DATE - INTERVAL '{{days}} days'
Last run: about 10 hours ago
4
111B
123s