Frame.fromRpc
Converts an RPC frame to a frame.
Imports
Named
import { Frame } from 'ox'Examples
Basic Usage
import { Frame } from 'ox'
const frame = Frame.fromRpc({
data: '0x',
executionGas: '0xc350',
flags: '0x3',
mode: '0x1',
stateGas: '0x0',
value: '0x0'
})Definition
function fromRpc(
frame: Rpc,
): FrameSource: src/core/Frame.ts
Parameters
frame
- Type:
Rpc
The value to convert.
frame.data
- Type:
0x${string}
Frame calldata.
frame.executionGas
- Type:
0x${string}
Execution gas budget.
frame.flags
- Type:
0x${string}
Approval scope and batching bits.
frame.mode
- Type:
0x${string}
Execution mode.
frame.stateGas
- Type:
0x${string}
State gas budget.
frame.target
- Type:
Address.Address | null | undefined - Optional
Target address; absent for the transaction sender.
frame.value
- Type:
0x${string}
Value transferred in wei.
Return Type
The converted value.
Frame

