RPC method

eth_gasPrice on Ethereum

Supported on SwiftNodes

Everything below was measured on 2026-11-29 by calling eth_gasPrice on Ethereum through the same endpoint customers use, and is re-measured weekly.

What eth_gasPrice does

Returns the node's suggested gas price in wei for a legacy (type 0) transaction. On EIP-1559 chains it is usually the current base fee plus a suggested tip, which can sit well above what transactions actually pay.

eth_gasPrice on Ethereum: what we measured

eth_gasPrice0.0479 gwei
Base fee of the latest block0.0514 gwei
eth_maxPriorityFeePerGas3,872 wei
Median tip paid (last 20 blocks)0.00565 gwei

Should you use it?

eth_gasPrice (0.0479 gwei) was within 16% of the base fee plus the median tip paid (0.0571 gwei), so it is a reasonable default on Ethereum.

Example request

curl -s https://rpc.swiftnodes.io/rpc/eth?key=YOUR_API_KEY \
  -X POST -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_gasPrice","params":[]}'
import { createPublicClient, http } from "viem";

const client = createPublicClient({
  transport: http("https://rpc.swiftnodes.io/rpc/eth?key=YOUR_API_KEY"),
});

const gasPrice = await client.getGasPrice(); // legacy price, wei

// EIP-1559 fees from recent blocks instead of the suggestion
const { baseFeePerGas, reward } = await client.getFeeHistory({ blockCount: 20, rewardPercentiles: [50] });
const tips = reward!.map((r) => r[0]).sort((a, b) => (a < b ? -1 : a > b ? 1 : 0));
const maxPriorityFeePerGas = tips[10];
const maxFeePerGas = baseFeePerGas.at(-1)! * 2n + maxPriorityFeePerGas;

Other methods on Ethereum

eth_gasPrice on other chains

Frequently asked questions

Does Ethereum support eth_gasPrice?

Yes. eth_gasPrice answered on the SwiftNodes Ethereum endpoint when our weekly probe called it through the customer path (2026-11-29).

What is the gas price on Ethereum?

eth_gasPrice returned 0.0479 gwei on 2026-11-29, with a base fee of 0.0514 gwei. Live values are on our Ethereum gas page.

Ethereum endpoints, live block height and WebSocket status are on the Ethereum RPC page.

One key covers every chain we serve, and SwiftNodes has a free tier.