eth_feeHistory
Returns transaction base fee per gas and effective priority fee per gas for the requested block range.
Path Parameters
docs-demoFor higher throughput, create your own API key
Request
format: "^0x([1-9a-f]+[0-9a-f]*|0)$"requiredThe number of blocks in the requested range. Must be greater than zero. Clients may return fewer blocks if not all blocks are available.
The highest block number of the requested range, or 'latest' for the most recent block.
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.