ethereumjs-monorepo

@ethereumjs/tx


@ethereumjs/tx / createBlob4844TxFromBytesArray

Function: createBlob4844TxFromBytesArray()

createBlob4844TxFromBytesArray(values, opts): Blob4844Tx

Defined in: 4844/constructors.ts:193

Create a Blob4844Tx transaction from an array of byte encoded values ordered according to the devp2p network encoding. Only canonical format supported, otherwise use createBlob4844TxFromSerializedNetworkWrapper().

Parameters

values

BlobEIP4844TxValuesArray

Array of byte encoded values 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 values array length is not 11 (unsigned) or 14 (signed)

Format: [chainId, nonce, maxPriorityFeePerGas, maxFeePerGas, gasLimit, to, value, data, accessList, maxFeePerBlobGas, blobVersionedHashes, v, r, s]

Notes: