Skip to content

TxEnvelopeEip4844.assert

Asserts a TxEnvelopeEip4844.TxEnvelopeEip4844 is valid.

Imports

Named
import { TxEnvelopeEip4844 } from 'ox'

Examples

import { TxEnvelopeEip4844, Value } from 'ox'
 
TxEnvelopeEip4844.assert({
  blobVersionedHashes: [],
  chainId: 1,
  to: '0x0000000000000000000000000000000000000000',
  value: Value.fromEther('1'),
})
EmptyBlobVersionedHashesError: Blob versioned hashes must not be empty.

Definition

function assert(
  envelope: PartialBy<TxEnvelopeEip4844, 'type'>,
): void

Source: src/core/TxEnvelopeEip4844.ts

Parameters

envelope

  • Type: PartialBy<TxEnvelopeEip4844, 'type'>

The transaction envelope to assert.

Return Type

void