RPC method

eth_feeHistory on Katana

Supported on SwiftNodes

Everything below was measured on 2026-11-29 by calling eth_feeHistory on Katana 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 Katana: 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.

The median tip paid on Katana was zero in the measured window. A zero tip is therefore enough for normal inclusion; paying a percentile above zero buys priority only if the next block is actually contended.

Base fee, latest block0.0500 gwei
Median tip paid over the measured window0 wei
Node's suggested priority fee0.00100 gwei
eth_gasPrice for comparison0.0510 gwei
Window used by the probelast 20 blocks (about 20 s)

Example request

curl -s https://rpc.swiftnodes.io/rpc/katana?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/katana?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 Katana

eth_feeHistory on other chains

Frequently asked questions

Does Katana support eth_feeHistory?

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

What rewardPercentiles should I use on Katana?

Start with [25, 50, 75]. On Katana the median tip paid over the last 20 blocks was 0 wei; a higher percentile is only useful when the next block is contended.

How many blocks should I request?

Twenty is a good default. At Katana's measured block time, that is about 20 s of history; use a shorter window when fees are moving quickly.

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

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