# z.Frame.Rpc

RPC frame schema.

## Imports

```ts
import { z } from 'ox/zod'

z.Frame.Rpc
```

## Definition

```ts
export const Rpc = z
  .object({
    data: z_Hex.Hex,
    executionGasLimit: z_Hex.Hex,
    flags: z.number(),
    mode: z.number(),
    stateGasLimit: z_Hex.Hex,
    target: z.optional(z.nullable(z_Address.Address)),
    value: z_Hex.Hex,
  })
  .check(
    z.refine((value) => {
      try {
        core_Frame.fromRpc(value)
        return true
      } catch {
        return false
      }
    }, 'Invalid frame'),
  )
```

**Source:** [src/zod/Frame.ts](https://github.com/wevm/ox/blob/main/src/zod/Frame.ts)
