Skip to content

FrameRequest

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

Examples

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

Functions

NameDescription
FrameRequest.fromRpcConverts an RPC frame request, preserving omitted gas limits for node estimation.
FrameRequest.toRpcConverts a frame request to RPC fields without filling omitted gas limits.

Types

NameDescription
FrameRequest.FrameRequestA frame request whose omitted gas limits are estimated by the node.
FrameRequest.RpcJSON-RPC frame request. Only the execution mode is required.