Home

Get fee history

POST
https://linea.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-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

application/json

JSON-RPC request envelope.

jsonrpcstring2.0required

JSON-RPC protocol version.

methodstringeth_feeHistoryrequired

JSON-RPC method name.

paramsArray<string | Array<integer>>required

Parameters:

  1. blockCount — number of blocks in the requested range.
  2. newestBlock — highest block number in the requested range (can be "latest").
  3. rewardPercentiles — list of percentile values to sample priority fees from each block (optional).
Show child attributes

One positional parameter.

One of

Value returned by the method.

string
Array<integer>
idintegerrequired

Identifier echoed in the response.

Response

200OK

JSON-RPC Response with fee history data