> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_feeHistory | Base

> Base API method eth_feeHistory retrieves historical gas fee data, providing insights into gas price trends and block utilization over time.

Base API method `eth_feeHistory` retrieves historical gas fee data, providing insights into gas price trends and block utilization over time. This method is valuable for estimating transaction fees and understanding network congestion.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## Parameters

* `blockCount` — the number of blocks to include in the history.
* `newestBlock` — the newest block (by number or one of the strings `"earliest"`, `"latest"`, or `"pending"`) to include in the history.
* `rewardPercentiles` — an array of percentiles to calculate effective priority fees over the requested blocks.

## Response

* `result` — an object containing:
  * `oldestBlock` — the oldest block number in the history.
  * `baseFeePerGas` — an array of base fees per gas for each block.
  * `gasUsedRatio` — an array of ratios of gas used to gas limit for each block.
  * `reward` — an array of arrays containing the priority fees at the specified percentiles for each block.

## Use case

The `eth_feeHistory` method is essential for:

* Wallets and interfaces providing users with data-driven gas price suggestions.
* Applications and services monitoring Base network congestion and optimizing transaction fee estimates.
* Analysts studying Base gas fee trends and block space utilization.


## OpenAPI

````yaml /openapi/base_node_api/eth_feeHistory.json POST /2fc1de7f08c0465f6a28e3c355e0cb14
openapi: 3.0.0
info:
  title: eth_feeHistory example
  version: 1.0.0
  description: >-
    This is an API example for eth_feeHistory, a method to retrieve historical
    gas fee data.
servers:
  - url: https://base-mainnet.core.chainstack.com
security: []
paths:
  /2fc1de7f08c0465f6a28e3c355e0cb14:
    post:
      tags:
        - Ethereum Operations
      summary: eth_feeHistory
      operationId: feeHistory
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_feeHistory
                id:
                  type: integer
                  default: 1
                params:
                  type: array
                  items:
                    anyOf:
                      - type: integer
                      - type: string
                      - type: array
                        items:
                          type: integer
                      - type: array
                        items:
                          type: string
                  default:
                    - 1024
                    - latest
                    - - 10
                      - 20
                      - 30
      responses:
        '200':
          description: Historical gas fee data
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    properties:
                      oldestBlock:
                        type: string
                      baseFeePerGas:
                        type: array
                        items:
                          type: string
                      gasUsedRatio:
                        type: array
                        items:
                          type: number
                      reward:
                        type: array
                        items:
                          type: array
                          items:
                            type: string

````