Frame.assert
Asserts that a Frame.Frame satisfies frame-local constraints.
Sender-dependent approval, batch adjacency, expiry, and transaction-wide gas constraints require the enclosing transaction.
Imports
Named
import { Frame } from 'ox'Examples
Basic Usage
Check a verification frame before including it in a transaction.
import { Frame } from 'ox'
Frame.assert({
executionGas: 50_000n,
flags: 'approveExecutionAndPayment',
mode: 'verify'
})Definition
function assert(
frame: Frame,
): voidSource: src/core/Frame.ts
Parameters
frame
- Type:
Frame
The frame to assert.
frame.data
- Type:
0x${string} - Optional
Frame calldata.
frame.executionGas
- Type:
bigintType - Optional
Execution gas budget.
frame.flags
- Type:
Flags - Optional
Approval scope and atomic batching bits.
frame.mode
- Type:
Mode - Optional
Execution context: default, verify, or sender.
frame.stateGas
- Type:
bigintType - Optional
State gas budget.
frame.to
- Type:
Address.Address | undefined - Optional
Target address. Omit to target the transaction sender.
frame.value
- Type:
bigintType - Optional
Value transferred by a sender frame, in wei.
Return Type
void

