@ethereumjs/tx / 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.
Uint8Array
Serialized BlobTransactionNetworkWrapper as Uint8Array
Transaction options including Common instance with KZG initialized
A new Blob4844Tx instance with network wrapper data
If Common instance is not provided
If KZG is not initialized in Common
If serialized data is not a valid EIP-4844 transaction
If network wrapper has invalid number of values (not 4 or 5)
If transaction has no valid to address
If network wrapper version is invalid
If KZG verification fails
If versioned hashes don’t match commitments
Network Wrapper Formats:
0x03 || rlp([tx_values, blobs, kzg_commitments, kzg_proofs]) (4 values)0x03 || rlp([tx_values, network_wrapper_version, blobs, kzg_commitments, kzg_proofs]) (5 values)Notes:
customCrypto.kzg initializedopts.freeze is set to false