Skip to content

TransactionEnvelopeEip4844.validate

Validates a TransactionEnvelopeEip4844.TransactionEnvelopeEip4844. Returns true if the envelope is valid, false otherwise.

Imports

Named
import { TransactionEnvelopeEip4844 } from 'ox'

Examples

import { TransactionEnvelopeEip4844, Value } from 'ox'
 
const valid = TransactionEnvelopeEip4844.assert({
  blobVersionedHashes: [],
  chainId: 1,
  to: '0x0000000000000000000000000000000000000000',
  value: Value.fromEther('1'),
})
false

Definition

function validate(
  envelope: PartialBy<TransactionEnvelopeEip4844, 'type'>,
): boolean

Source: src/TransactionEnvelopeEip4844.ts

Parameters

envelope

  • Type: PartialBy<TransactionEnvelopeEip4844, 'type'>

The transaction envelope to validate.

Return Type

boolean