Skip to content

Frame.toRpc

Converts a frame to its JSON-RPC representation.

Imports

Named
import { Frame } from 'ox'

Examples

Basic Usage

import { Frame } from 'ox'
 
const frame = Frame.from({ executionGas: 50_000n, mode: 'verify' })
const rpc = Frame.toRpc(frame)

Definition

function toRpc(
  frame: toRpc.Input,
): Rpc

Source: src/core/Frame.ts

Parameters

frame

  • Type: toRpc.Input

The value to convert.

Return Type

The converted value.

Rpc