# FrameRequest

Convert EIP-8141 frame requests while preserving omitted gas limits for node estimation.

## Examples

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

const frame = FrameRequest.toRpc({ mode: 'sender', stateGas: 0n })
```

## Functions

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`FrameRequest.fromRpc`](/api/FrameRequest/fromRpc) | Converts an RPC frame request, preserving omitted gas limits for node estimation. |
| [`FrameRequest.toRpc`](/api/FrameRequest/toRpc) | Converts a frame request to RPC fields without filling omitted gas limits. |

## Types

| Name                | Description                         |
| ------------------- | ----------------------------------- |
| [`FrameRequest.FrameRequest`](/api/FrameRequest/types#framerequestframerequest) | A frame request whose omitted gas limits are estimated by the node. |
| [`FrameRequest.Rpc`](/api/FrameRequest/types#framerequestrpc) | JSON-RPC frame request. Only the execution mode is required. |
