Skip to main content
POST
Get fee history

Body

application/json
jsonrpc
enum<string>
default:2.0
required

JSON-RPC protocol version. Always 2.0.

Available options:
2.0
id
integer
default:1
required

Request identifier echoed back in the response.

method
enum<string>
default:eth_feeHistory
required

JSON-RPC method name.

Available options:
eth_feeHistory
params
tuple
required

[blockCount, newestBlock, rewardPercentiles].

Response

200 - application/json

JSON-RPC 2.0 response. Errors are reported in-band via an error object with code and message in place of result.

jsonrpc
enum<string>
Available options:
2.0
id
integer
result
object

Standard eth_feeHistory response with Metal fee semantics.