TransactionEnvelopeEip1559.validate
Validates a TransactionEnvelopeEip1559.TransactionEnvelopeEip1559
. Returns true
if the envelope is valid, false
otherwise.
Imports
Named
import { TransactionEnvelopeEip1559 } from 'ox'
Examples
import { TransactionEnvelopeEip1559, Value } from 'ox'
const valid = TransactionEnvelopeEip1559.assert({
maxFeePerGas: 2n ** 256n - 1n + 1n,
chainId: 1,
to: '0x0000000000000000000000000000000000000000',
value: Value.fromEther('1'),
})
false
Definition
function validate(
envelope: PartialBy<TransactionEnvelopeEip1559, 'type'>,
): boolean
Source: src/core/TransactionEnvelopeEip1559.ts
Parameters
envelope
- Type:
PartialBy<TransactionEnvelopeEip1559, 'type'>
The transaction envelope to validate.
Return Type
boolean