Alchemy Logo

eth_feeHistory

POST
/{apiKey}

Returns transaction base fee per gas and effective priority fee per gas for the requested block range.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

blockCountstringformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"required

The number of blocks in the requested range. Must be greater than zero. Clients may return fewer blocks if not all blocks are available.

newestBlockstring or enumrequired

The highest block number of the requested range, or 'latest' for the most recent block.

rewardPercentilesnumber[]optional

An optional array of percentile values (between 0 and 100) in ascending order. For each block in the requested range, the transactions are sorted by effective priority fee per gas, and the corresponding effective priority fee per gas at each percentile is returned.

Responses

200

Fee history for the returned block range. This can be a subsection of the requested range if not all blocks are available.

Was this page helpful?