TransactionEnvelopeEip4844.assert
Asserts a TransactionEnvelopeEip4844.TransactionEnvelopeEip4844
is valid.
Imports
Named
import { TransactionEnvelopeEip4844 } from 'ox'
Examples
import { TransactionEnvelopeEip4844, Value } from 'ox'
TransactionEnvelopeEip4844.assert({
blobVersionedHashes: [],
chainId: 1,
to: '0x0000000000000000000000000000000000000000',
value: Value.fromEther('1'),
})
EmptyBlobVersionedHashesError: Blob versioned hashes must not be empty.
Definition
function assert(
envelope: PartialBy<TransactionEnvelopeEip4844, 'type'>,
): void
Source: src/TransactionEnvelopeEip4844.ts
Parameters
envelope
- Type:
PartialBy<TransactionEnvelopeEip4844, 'type'>
The transaction envelope to assert.
Return Type
void
Error Type
TransactionEnvelopeEip4844.assert.ErrorType