Skip to content

TransactionEnvelopeEip4844.deserialize

Deserializes a TransactionEnvelopeEip4844.TransactionEnvelopeEip4844 from its serialized form.

Imports

Named
import { TransactionEnvelopeEip4844 } from 'ox'

Examples

import { TransactionEnvelopeEip4844 } from 'ox'
 
const envelope = TransactionEnvelopeEip4844.deserialize('0x03ef0182031184773594008477359400809470997970c51812dc3a010c7d01b50e0d17dc79c8880de0b6b3a764000080c0')
{
blobVersionedHashes: [...],
type: 'eip4844',
nonce: 785n,
maxFeePerGas: 2000000000n,
gas: 1000000n,
to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
value: 1000000000000000000n,
}

Definition

function deserialize(
  serialized: Serialized,
): Compute<TransactionEnvelopeEip4844>

Source: src/core/TransactionEnvelopeEip4844.ts

Parameters

serialized

  • Type: Serialized

The serialized transaction.

Return Type

Deserialized Transaction Envelope.

Compute<TransactionEnvelopeEip4844>