Gas & fees1 CU

eth_feeHistory on Unichain

Returns base fees and priority-fee percentiles over a range of recent blocks — used to build fee oracles and gas-estimation UIs.

The raw material for a fee oracle: base fees plus your chosen reward percentiles per block. Request a modest blockCount (5–20); very long ranges are slow and rarely sharpen the estimate.

Unichain endpoint (public — no key)

https://rpc.nodeflare.app/unichain/public

Method

eth_feeHistory

Cost

1 CU

Chain ID

130

Block time

~1 s

Finality

~1 s soft · L1-final ~13 min

Gas & fees on Unichain

Execution fees are tiny and priority fees near zero; the L1 data fee dominates calldata-heavy transactions. eth_gasPrice alone understates the true total — read receipts for real cost.

Parameters

[blockCount, newestBlock, rewardPercentiles[]]

cURL

curl https://rpc.nodeflare.app/unichain/public \
  -X POST \
  -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","method":"eth_feeHistory","params":["0x5", "latest", [25, 50, 75]],"id":1}'

ethers.js

import { ethers } from 'ethers';

const provider = new ethers.JsonRpcProvider(
  'https://rpc.nodeflare.app/unichain/public'
);

const result = await provider.send('eth_feeHistory', ["0x5", "latest", [25, 50, 75]]);

Try it live

Runs the example above against the public Unichain endpoint — straight from your browser.

eth_feeHistory on Unichain — FAQ

How do I call eth_feeHistory on Unichain?

POST a JSON-RPC 2.0 request with "method": "eth_feeHistory" to NodeFlare's Unichain endpoint at https://rpc.nodeflare.app/unichain/public. No API key is required for the public endpoint.

What does eth_feeHistory cost on the free tier?

eth_feeHistory is weighted at 1 compute unit per call. The free tier includes 2,000,000 CU/month, so that is roughly 2,000,000 eth_feeHistory calls per month — no credit card.

Is eth_feeHistory available on the public Unichain endpoint?

Yes. eth_feeHistory works on the public Unichain endpoint (https://rpc.nodeflare.app/unichain/public) with no API key, rate-limited per IP. A free key adds higher limits and a dedicated path.

Anything Unichain-specific to know when using eth_feeHistory?

Execution fees are tiny and priority fees near zero; the L1 data fee dominates calldata-heavy transactions. eth_gasPrice alone understates the true total — read receipts for real cost.

Call eth_feeHistory on Unichain with a free key

2,000,000 compute units/month, heavy methods unlocked, every chain included. No credit card.

Get your free API key →