Current offer: every account has 1 reset chance(s) to top its balance back up to 30,000,000 CU in one click. New accounts start with 30,000,000 CU. Learn more →
JSON-RPCMethods

eth_feeHistory: parameters, returns and CU

Return historical base fees, gas usage ratios and fee percentiles. See parameters, return value, CU metering and supported chains for this method.

Summary

Return historical base fees, gas usage ratios and optional priority-fee percentiles over a range of blocks.

Compute Units (CU) and Pricing

CU per call

10 CU

Price per 1M calls (USD)

$1

Parameters

ParameterTypeDescription
blockCountQUANTITYNumber of blocks to query, as a 0x-prefixed hexadecimal quantity.
newestBlockQUANTITY|TAGNewest block in the range, as a block number or tag such as latest.
rewardPercentilesARRAYOptional ascending array of percentiles between 0 and 100, used to compute priority-fee percentiles per block.

Returns

  • Type: object
  • Description: Object with oldestBlock, baseFeePerGas (an array one longer than blockCount), gasUsedRatio, and, when rewardPercentiles is given, a two-dimensional reward array.

Notes

This is the EIP-1559 fee-history method; when rewardPercentiles is omitted, the result has no reward field.

Request Example

curl -X POST "https://dev-api.blockvectra.network/v1/robinhood_mainnet" \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: <api_key>' \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_feeHistory",
    "params": [
      "<blockCount>",
      "latest",
      []
    ],
    "id": 1
  }'

Supported Chains

Supported chains:

  • EthereumBetaeth_mainnet
  • HyperEVMhyperevm_mainnet
  • Robinhood Chainrobinhood_mainnet