eth_feeHistory
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns fee market information for a range of blocks. This is typically used by wallets and other tools to estimate appropriate gas prices.
Body
Returns fee market information for a range of blocks. This is typically used by wallets and other tools to estimate appropriate gas prices.
Request payload for eth_feeHistory.
jsonrpcstringrequiredJSON-RPC protocol version.
methodstringrequiredJSON-RPC method name.
paramsArray<string | integer | Array<number>>requiredParameters:
blockCount— number of blocks in the requested range.newestBlock— highest block number in the requested range (can be "latest").rewardPercentiles— list of percentile values to sample priority fees from each block (optional).
idintegerrequiredClient-provided request identifier echoed in the response.
Response
Response returned by eth_feeHistory.
Unauthorized: API key is present but rejected by the NOWNodes gateway.
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Missing API key. The NOWNodes gateway returns plain text for this error.
Upstream node or gateway error.