Skip to content

eth_feeHistory

Returns base fee per gas and effective priority fee history.

ParameterTypeRequiredDescription
blockCounthexYesNumber of blocks (hex)
newestBlockblockTagYesNewest block
rewardPercentilesarrayNoReward percentiles
{
"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": [
"0x4",
"latest",
"[25, 75]"
],
"id": 1
}
Terminal window
curl -X POST https://eth-mainnet.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_feeHistory","params":["0x4","latest","[25, 75]"],"id":1}'