> For the complete documentation index, see [llms.txt](/llms.txt).

# `rollup_gasPrices`

Returns the current layer 1 (L1) and layer 2 (L2) gas prices.

## Parameters[​](#parameters "Direct link to Parameters")

None

## Returns[​](#returns "Direct link to Returns")

Gas price object:

- `l1GasPrice`: L1 gas price fee in wei.
- `l2GasPrice`: L2 gas price fee in wei.

## Example[​](#example "Direct link to Example")

Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://app.infura.io/).

### Request[​](#request "Direct link to Request")

- curl
- WSS

```
curl https://mantle-mainnet.infura.io/v3/<YOUR-API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "method": "rollup_gasPrices", "params": [], "id": 1}'

```

```
wscat -c wss://mantle-mainnet.infura.io/ws/v3/<YOUR-API-KEY> -x '{"jsonrpc": "2.0", "method": "rollup_gasPrices", "params": [], "id": 1}'

```

### Result[​](#result "Direct link to Result")

```
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "l1GasPrice": "0x254aa66732",
    "l2GasPrice": "0xf3792"
  }
}

```
