@ethereumjs/tx / 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().
BlobEIP4844TxValuesArray
Array of byte encoded values containing:
chainId - Chain ID as Uint8Arraynonce - Transaction nonce as Uint8ArraymaxPriorityFeePerGas - Maximum priority fee per gas (EIP-1559) as Uint8ArraymaxFeePerGas - Maximum fee per gas (EIP-1559) as Uint8ArraygasLimit - Gas limit for the transaction as Uint8Arrayto - Recipient address as Uint8Array (optional for contract creation)value - Value to transfer in wei as Uint8Arraydata - Transaction data as Uint8ArrayaccessList - Access list for EIP-2930 as Uint8Array (optional)maxFeePerBlobGas - Maximum fee per blob gas (EIP-4844) as Uint8ArrayblobVersionedHashes - Versioned hashes for blob validation as Uint8Array[]v - Signature recovery ID as Uint8Array (for signed transactions)r - Signature r component as Uint8Array (for signed transactions)s - Signature s component as Uint8Array (for signed transactions)TxOptions = {}
Transaction options including Common instance with KZG initialized
A new Blob4844Tx instance
If KZG is not initialized in Common
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:
customCrypto.kzg initialized