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

# eth_gasPrice

> Returns the current gas price in wei.

Returns the current gas price in wei. For EIP-1559 transactions, use [`eth_maxPriorityFeePerGas`](/base-chain/api-reference/ethereum-json-rpc-api/eth_maxPriorityFeePerGas) and [`eth_feeHistory`](/base-chain/api-reference/ethereum-json-rpc-api/eth_feeHistory) instead.

## Parameters

No parameters.

## Returns

<ResponseField name="result" type="string">
  The current gas price in wei as a hexadecimal string.
</ResponseField>

## Example

<CodeGroup>
  ```json Request theme={null}
  {
    "jsonrpc": "2.0",
    "method": "eth_gasPrice",
    "params": [],
    "id": 1
  }
  ```

  ```json Response theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x5b8d80"
  }
  ```
</CodeGroup>
