TxEnvelopeEip4844.validate
Validates a TxEnvelopeEip4844.TxEnvelopeEip4844. Returns true if the envelope is valid, false otherwise.
Imports
Named
import { TxEnvelopeEip4844 } from 'ox'Examples
import { TxEnvelopeEip4844, Value } from 'ox'
const valid = TxEnvelopeEip4844.assert({
blobVersionedHashes: [],
chainId: 1,
to: '0x0000000000000000000000000000000000000000',
value: Value.fromEther('1'),
})
falseDefinition
function validate(
envelope: PartialBy<TxEnvelopeEip4844, 'type'>,
): booleanSource: src/core/TxEnvelopeEip4844.ts
Parameters
envelope
- Type:
PartialBy<TxEnvelopeEip4844, 'type'>
The transaction envelope to validate.
Return Type
boolean

