ethereumjs-monorepo

@ethereumjs/tx


@ethereumjs/tx / createBlob4844Tx

Function: createBlob4844Tx()

createBlob4844Tx(txData, opts?): Blob4844Tx

Defined in: 4844/constructors.ts:125

Instantiate a Blob4844Tx transaction from a data dictionary.

If blobs are provided the tx will be instantiated in the “Network Wrapper” format, otherwise in the canonical form represented on-chain.

Parameters

txData

BlobEIP4844TxData

Transaction data object containing:

opts?

TxOptions

Transaction options including Common instance with KZG initialized

Returns

Blob4844Tx

A new Blob4844Tx instance

Throws

If KZG is not initialized in Common

Throws

If both blobsData and blobs are provided

Notes: