ethereumjs-monorepo

@ethereumjs/tx


@ethereumjs/tx / createBlob4844TxFromSerializedNetworkWrapper

Function: createBlob4844TxFromSerializedNetworkWrapper()

createBlob4844TxFromSerializedNetworkWrapper(serialized, opts?): Blob4844Tx

Defined in: 4844/constructors.ts:330

Creates a Blob4844Tx transaction from the network encoding of a blob transaction wrapper. This function handles the “Network Wrapper” format that includes blobs, commitments, and proofs.

Parameters

serialized

Uint8Array

Serialized BlobTransactionNetworkWrapper as Uint8Array

opts?

TxOptions

Transaction options including Common instance with KZG initialized

Returns

Blob4844Tx

A new Blob4844Tx instance with network wrapper data

Throws

If Common instance is not provided

Throws

If KZG is not initialized in Common

Throws

If serialized data is not a valid EIP-4844 transaction

Throws

If network wrapper has invalid number of values (not 4 or 5)

Throws

If transaction has no valid to address

Throws

If network wrapper version is invalid

Throws

If KZG verification fails

Throws

If versioned hashes don’t match commitments

Network Wrapper Formats:

Notes: