Skip to content

FrameRequest.fromRpc

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

Imports

Named
import { FrameRequest } from 'ox'

Examples

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

Definition

function fromRpc(
  frame: Rpc,
): FrameRequest

Source: src/core/FrameRequest.ts

Parameters

frame

  • Type: Rpc

The RPC frame request.

Return Type

The decoded request with omitted gas limits preserved.

FrameRequest.FrameRequest