TransactionEnvelopeEip7702.assert
Asserts a TransactionEnvelopeEip7702.TransactionEnvelopeEip7702
is valid.
Imports
Named
import { TransactionEnvelopeEip7702 } from 'ox'
Examples
import { TransactionEnvelopeEip7702, Value } from 'ox'
TransactionEnvelopeEip7702.assert({
authorizationList: [],
maxFeePerGas: 2n ** 256n - 1n + 1n,
chainId: 1,
to: '0x0000000000000000000000000000000000000000',
value: Value.fromEther('1'),
})
FeeCapTooHighError: The fee cap (`masFeePerGas` = 115792089237316195423570985008687907853269984665640564039457584007913 gwei) cannot be higher than the maximum allowed value (2^256-1).
Definition
function assert(
envelope: PartialBy<TransactionEnvelopeEip7702, 'type'>,
): void
Source: src/TransactionEnvelopeEip7702.ts
Parameters
envelope
- Type:
PartialBy<TransactionEnvelopeEip7702, 'type'>
The transaction envelope to assert.
Return Type
void
Error Type
TransactionEnvelopeEip7702.assert.ErrorType