# FrameRequest.fromRpc

Converts an RPC frame request, preserving omitted gas limits for node estimation.

## Imports

:::code-group
```ts [Named]
import { FrameRequest } from 'ox'
```

```ts [Entrypoint]
import * as FrameRequest from 'ox/FrameRequest'
```
:::

## Examples

```ts twoslash
import { FrameRequest } from 'ox'

const frame = FrameRequest.fromRpc({ mode: '0x2', stateGas: '0x0' })
```

## Definition

```ts
function fromRpc(
  frame: Rpc,
): FrameRequest
```

**Source:** [src/core/FrameRequest.ts](https://github.com/wevm/ox/blob/main/src/core/FrameRequest.ts#L25)

## Parameters

### frame

* **Type:** `Rpc`

The RPC frame request.

## Return Type

The decoded request with omitted gas limits preserved.

`FrameRequest.FrameRequest`
