> ## 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_gasPrice | Base

Base API method `eth_gasPrice` retrieves the current gas price, which is crucial for executing transactions on the Base network. The gas price is determined by the demand for transaction processing and the supply of miners willing to process transactions.

<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

* `none` — This method does not require any parameters.

## Response

* `result` — the current gas price, encoded as a hexadecimal string. This value fluctuates based on network activity and miner demand.

## Use case

The `eth_gasPrice` method is essential for:

* Users and applications preparing to send transactions, enabling them to set an appropriate gas price to ensure timely transaction processing.
* Wallets and interfaces that provide gas price suggestions to optimize for cost and confirmation time.
* Developers and analysts monitoring the Base network's congestion and transaction costs.


## OpenAPI

````yaml /openapi/base_node_api/eth_gasPrice.json POST /2fc1de7f08c0465f6a28e3c355e0cb14
openapi: 3.0.0
info:
  title: eth_gasPrice example
  version: 1.0.0
  description: >-
    This is an API example for eth_gasPrice, a method to retrieve the current
    gas price.
servers:
  - url: https://base-mainnet.core.chainstack.com
security: []
paths:
  /2fc1de7f08c0465f6a28e3c355e0cb14:
    post:
      tags:
        - Ethereum Operations
      summary: eth_gasPrice
      operationId: gasPrice
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_gasPrice
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: The current gas price
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string

````