TxEnvelopeEip8141.toRpc
Converts an EIP-8141 envelope to RPC fields. Sidecars are excluded.
Imports
Named
import { TxEnvelopeEip8141 } from 'ox'Examples
Basic Usage
import { Frame, TxEnvelopeEip8141 } from 'ox'
const envelope = TxEnvelopeEip8141.from({
chainId: 1,
frames: [Frame.from({})],
sender: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8'
})
const rpc = TxEnvelopeEip8141.toRpc(envelope)Definition
function toRpc(
envelope: toRpc.Input,
): RpcSource: src/core/TxEnvelopeEip8141.ts
Parameters
envelope
- Type:
toRpc.Input
The value to convert.
envelope.chainId
- Type:
number | bigint | 0x${string}
envelope.frames
- Type:
readonly Input[]
envelope.maxFeePerBlobGas
- Type:
number | bigint | 0x${string} - Optional
envelope.maxFeePerGas
- Type:
number | bigint | 0x${string} - Optional
envelope.maxPriorityFeePerGas
- Type:
number | bigint | 0x${string} - Optional
envelope.nonce
- Type:
number | bigint | 0x${string} - Optional
envelope.type
- Type:
"eip8141" - Optional
Return Type
The converted value.
Rpc

