Live Ethereum Mainnet gas metrics powered by Dwellir infrastructure.
Copy a ready-to-use example and pull Ethereum gas metrics directly into your tooling.
curl -sS -X POST https://api-ethereum-mainnet.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots> \-H "Content-Type: application/json" \-d '{"jsonrpc":"2.0","id":1,"method":"eth_gasPrice","params":[]}'
const response = await fetch('https://api-ethereum-mainnet.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>', {method: 'POST',headers: { 'Content-Type': 'application/json' },body: JSON.stringify({jsonrpc: '2.0',id: 1,method: 'eth_gasPrice',params: []})});const { result } = await response.json();console.log(`Gas price: ${parseInt(result, 16) / 1e9} gwei`);
import requestsDWELLIR_RPC = 'https://api-ethereum-mainnet.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>'payload = {'jsonrpc': '2.0','id': 1,'method': 'eth_gasPrice','params': []}resp = requests.post(DWELLIR_RPC, json=payload)data = resp.json()print(f"Gas price: {int(data['result'], 16) / 1e9} gwei")
import { JsonRpcProvider } from 'ethers';const provider = new JsonRpcProvider('https://api-ethereum-mainnet.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>');const feeData = await provider.getFeeData();console.log('Gas price', Number(feeData.gasPrice) / 1e9, 'gwei');console.log('Max priority fee', Number(feeData.maxPriorityFeePerGas) / 1e9, 'gwei');
const Web3 = require('web3');const web3 = new Web3('https://api-ethereum-mainnet.n.dwellir.com/<API_Keys_Are_Not_Made_for_Bots>');const gasPrice = await web3.eth.getGasPrice();console.log('Gas price', web3.utils.fromWei(gasPrice, 'gwei'), 'gwei');
Reference endpoints, guides, and examples.
View Ethereum docsProvision an API key and call your first method.
Get startedEIP-1559 splits every transaction cost into a base fee that the protocol burns and a priority tip paid to validators. The base fee automatically adjusts by up to 12.5% each block around the 15M gas target, so trackers surface gradual demand changes instead of guesswork bidding.
Historical dashboards show the cheapest windows in the quiet overnight UTC hours—roughly 00:00–06:00 UTC—and especially across Saturday and Sunday when global DeFi and NFT activity slows. Weekday afternoons in the U.S. and Europe (about 14:00–22:00 UTC) are typically the most congested, so queue non-urgent transactions for the calmer periods.
Start with the live base fee, then pick a priority tip that matches your urgency (modest tips often clear standard transfers, while volatile markets may need higher incentives). Set maxFeePerGas with a comfortable buffer—commonly 1.5–2× the current base fee plus tip—so sudden spikes do not stall your transaction; any unused portion is refunded automatically.
March 2024’s Dencun upgrade introduced blob transactions that slashed data costs for rollups, with many Layer 2s reporting fee drops of up to 99% and mainnet averages sliding from roughly 72 gwei (about $86 swaps) to around 2.7 gwei (about $0.39 swaps) over the following year. Expect more L2 activity to shift traffic off mainnet, but base-fee swings on Ethereum still depend on on-chain demand.
Batch related operations when protocols support it, target low-demand time slots, and consider bridging to Layer 2 networks where blob-enabled data lanes keep fees cents-cheap. Pair those tactics with live mempool trackers or alerts so you can broadcast as soon as congestion eases.
Dwellir runs dedicated infrastructure across leading layer-1 and layer-2 ecosystems so you can scale without switching providers.
Stay ahead of Arbitrum gas volatility with live priority fee insights.
Check Avalanche C-Chain gas prices with failover RPC coverage.
Monitor Base gas prices and block congestion in real time.
Real-time BNB Smart Chain gas data with high-throughput RPCs.
Monitor Blast gas fees and transaction pressure in real time.
Watch Celo network fees and throughput from globally distributed RPCs.
and join other leading Web3 companies using Dwellir's infrastructure
© Copyright 2026 Dwellir AB