<!-- Canonical: https://docs.linea.build/api/reference/eth-gasprice -->

> For the complete Linea documentation index, see [llms.txt](/llms.txt).
> Agents can fetch this page as Markdown at [https://docs.linea.build/api/reference/eth-gasprice.md](https://docs.linea.build/api/reference/eth-gasprice.md).

# eth_gasPrice

# `eth_gasPrice`

Returns the current gas price in wei.

## Parameters

None.

## Returns

Hexadecimal value of the current gas price in wei.

## Example

### Request

```bash
curl https://rpc.linea.build \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_gasPrice","params":[],"id":1}'
```

### Response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x27f6780"
}
```
