/ DEVELOPERS / API / ETH_FEEHISTORY

eth_feeHistory

Returns base fee, gas-used ratio and (optional) reward percentiles for the most recent N blocks. Used by wallets to suggest priority fees.

eth_feeHistory

Returns base fee, gas-used ratio and (optional) reward percentiles for the most recent N blocks. Used by wallets to suggest priority fees.

eth_*category: gasreturns: object
Share link

Parameters

Number of blocks to inspect (capped at 1024)

Upper bound of the lookback window

Optional [p1, p2, ...] in [0,100]

Response

Press Send Request to see a response.

Copy as

curl -X POST '/rpc' \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","method":"eth_feeHistory","params":["0x5","latest",[25,50,75]],"id":1}'