FrameReceipt.toRpc
Converts a FrameReceipt.FrameReceipt to an RPC frame receipt.
Imports
Named
import { FrameReceipt } from 'ox'Examples
Basic Usage
import { FrameReceipt } from 'ox'
const receipt = FrameReceipt.fromRpc({
executionGasUsed: '0x5208',
gasUsed: '0x5208',
logs: [],
stateGasUsed: '0x0',
status: '0x1'
})
const rpc = FrameReceipt.toRpc(receipt)Definition
function toRpc(
receipt: toRpc.Input,
): RpcSource: src/core/FrameReceipt.ts
Parameters
receipt
- Type:
toRpc.Input
The frame receipt. Gas accepts hex, bigint, or number values.
Return Type
The RPC frame receipt with hex gas and a hex status.
Rpc

