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
| Parameter | Type | Description |
|---|---|---|
blockCount | QUANTITY | Number of blocks to query, as a 0x-prefixed hexadecimal quantity. |
newestBlock | QUANTITY|TAG | Newest block in the range, as a block number or tag such as latest. |
rewardPercentiles | ARRAY | Optional 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:
- EthereumBeta
eth_mainnet - HyperEVM
hyperevm_mainnet - Robinhood Chain
robinhood_mainnet
Related references
eth_getLogs: parameters, returns and CU
Query event logs within a block range that match a filter. See parameters, return value, CU metering and supported chains for this method.
eth_sendRawTransaction: parameters, returns and CU
Submit a signed raw transaction. See parameters, return value, CU metering and supported chains for this method.