TX_COUNT_24H | TOTAL_MNT_FEES_24H | AVG_MNT_FEE_PER_TX_24H | |
---|---|---|---|
1 | 272593 | 2952.2581263 | 0.01083027857 |
10Blockchainfee identique au site
Updated 2025-02-23
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
›
⌄
WITH last_24h AS (
SELECT
-- On borne sur les dernières 24h
block_timestamp,
tx_hash,
gas_used,
gas_price
FROM mantle.core.fact_transactions
WHERE block_timestamp >= DATEADD(day, -1, CURRENT_TIMESTAMP)
AND block_timestamp < CURRENT_TIMESTAMP
)
SELECT
COUNT(DISTINCT tx_hash) AS tx_count_24h,
/* Conversion Gwei MNT -> MNT : on divise par 1e9 */
SUM(gas_used * gas_price) / 1e9 AS total_mnt_fees_24h,
CASE WHEN COUNT(DISTINCT tx_hash) = 0 THEN 0
ELSE (SUM(gas_used * gas_price) / 1e9)
/ COUNT(DISTINCT tx_hash)
END AS avg_mnt_fee_per_tx_24h
FROM last_24h;
Last run: about 2 months ago
1
37B
2s