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/eb7baebf-d116-4163-bcfb-d1dca6c9f7ed \-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/eb7baebf-d116-4163-bcfb-d1dca6c9f7ed', {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/eb7baebf-d116-4163-bcfb-d1dca6c9f7ed'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/eb7baebf-d116-4163-bcfb-d1dca6c9f7ed');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/eb7baebf-d116-4163-bcfb-d1dca6c9f7ed');const gasPrice = await web3.eth.getGasPrice();console.log('Gas price', web3.utils.fromWei(gasPrice, 'gwei'), 'gwei');
Reference endpoints, guides, and examples.
Learn moreProvision an API key and call your first method.
Get startedDwellir runs dedicated infrastructure across leading layer-1 and layer-2 ecosystems so you can scale without switching providers.
Archive access with full EIP-1559 support
Low-cost scaling aligned with Ethereum tooling
Rollup throughput with familiar developer ergonomics
Optimistic rollup with production-grade tooling
and join other leading Web3 companies using Dwellir's infrastructure
© Copyright 2025 Dwellir AB