TxEnvelopeEip8141.deserialize
Deserializes an EIP-8141 transaction body or PeerDAS network wrapper.
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 serialized = TxEnvelopeEip8141.serialize(envelope)
const decoded = TxEnvelopeEip8141.deserialize(serialized)Definition
function deserialize(
serialized: Serialized,
): TxEnvelopeEip8141Source: src/core/TxEnvelopeEip8141.ts
Parameters
serialized
- Type:
Serialized
Serialized transaction or network wrapper.
Return Type
The transaction envelope.

