eth_feeHistory on Soneium
Everything below was measured on 2026-11-29 by calling eth_feeHistory on Soneium through the same endpoint customers use, and is re-measured weekly.
What eth_feeHistory does
Returns recent base fees, gas-used ratios and optional priority-fee percentiles. Wallets and SDKs use it to set maxFeePerGas and maxPriorityFeePerGas from what blocks actually paid, instead of trusting a single eth_gasPrice number.
eth_feeHistory on Soneium: what we measured
The response's baseFeePerGas array has one more entry than the blocks you asked for: the last value is the base fee for the next block, which is the one a new transaction has to clear. Reward percentiles are reported per block in the same order you requested them.
A practical maxFeePerGas is the next base fee plus a buffer for a few blocks, plus the tip you choose. A common starting point is twice the next base fee plus a median tip; a larger multiplier buys inclusion through a burst of full blocks at the cost of a higher maximum. The tip comes from the percentile you want to outbid — 25th for cheap, 50th for typical, 75th or higher when inclusion time matters.
Requesting 20 blocks is usually enough to see the current regime. A longer window smooths a single busy block but also mixes in fee levels that no longer apply; a shorter window reacts faster but is noisier.
| Base fee, latest block | 0.0120 gwei |
|---|---|
| Median tip paid over the measured window | 0.00100 gwei |
| Node's suggested priority fee | 0.00100 gwei |
| eth_gasPrice for comparison | 0.0130 gwei |
| Window used by the probe | last 20 blocks (about 40 s) |
Example request
curl -s https://rpc.swiftnodes.io/rpc/soneium?key=YOUR_API_KEY \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_feeHistory","params":["0x14","latest",[25,50,75]]}'import { createPublicClient, http } from "viem";
const client = createPublicClient({
transport: http("https://rpc.swiftnodes.io/rpc/soneium?key=YOUR_API_KEY"),
});
const history = await client.getFeeHistory({
blockCount: 20,
rewardPercentiles: [25, 50, 75],
});
// The last entry is the base fee expected for the next block.
const nextBaseFee = history.baseFeePerGas.at(-1)!;
const medianTip = history.reward!.map((r) => r[1]).sort((a, b) => (a < b ? -1 : a > b ? 1 : 0))[10];
// Two blocks of base-fee headroom plus the median tip. Tune the multiplier to your inclusion target.
const maxFeePerGas = nextBaseFee * 2n + medianTip;
const maxPriorityFeePerGas = medianTip;Other methods on Soneium
- eth_blockNumberSupported
- eth_chainIdSupported
- eth_getBalanceSupported
- eth_getBlockByNumberSupported
- eth_getTransactionByHashSupported
- eth_getTransactionReceiptSupported
- eth_callSupported
- eth_estimateGasSupported
- eth_gasPriceSupported
- eth_maxPriorityFeePerGasSupported
- eth_sendRawTransactionSupported
- eth_getTransactionCountSupported
- eth_getCodeSupported
- eth_subscribeSupported
- eth_getLogsSupported
- eth_getBlockReceiptsSupported
- eth_getProofSupported
- eth_createAccessListSupported
- debug_traceCallNot available
- trace_blockNot available
- trace_transactionNot available
eth_feeHistory on other chains
- Ethereum
- Base
- Arbitrum
- Optimism
- Polygon
- BNB Smart Chain
- Avalanche
- Sonic
- Linea
- Scroll
- zkSync Era
- Mantle
- Gnosis
- Celo
- Berachain
- Monad
- Unichain
- Kaia
- PulseChain
- World Chain
- Ronin
- Abstract
- ApeChain
- MegaETH
- Fantom
- Lisk
- Hemi
- X Layer
- BOB
- Plasma
- Fraxtal
- Zora
- Story
- Sei
- Hyperliquid
- Taiko
- Morph
- Ink
- Katana
- Ethereum Classic
- opBNB
- Mode
- Flare
- Core
- Chiliz
- Telos EVM
- Tempo
- Cronos
- Manta Pacific
- Shibarium
- Boba Network
- Arbitrum Nova
- Immutable zkEVM
Frequently asked questions
Does Soneium support eth_feeHistory?
Yes. eth_feeHistory answered on the SwiftNodes Soneium endpoint when our weekly probe called it through the customer path (2026-11-29).
What rewardPercentiles should I use on Soneium?
Start with [25, 50, 75]. On Soneium the median tip paid over the last 20 blocks was 0.00100 gwei; a higher percentile is only useful when the next block is contended.
How many blocks should I request?
Twenty is a good default. At Soneium's measured block time, that is about 40 s of history; use a shorter window when fees are moving quickly.
Soneium endpoints, live block height and WebSocket status are on the Soneium RPC page.
One key covers every chain we serve, and SwiftNodes has a free tier.