FundingRequirement.assert
Validates a funding requirement's signed fields.
Imports
Named
import { FundingRequirement } from 'ox/tempo'Examples
import { FundingRequirement } from 'ox/tempo'
const token = '0x20c0000000000000000000000000000000000001' as const
FundingRequirement.assert({ token, amount: 50n, sources: [] })Definition
function assert(
value: FundingRequirement,
): voidSource: src/tempo/FundingRequirement.ts
Parameters
value
- Type:
FundingRequirement
value.amount
- Type:
bigintType
Target balance, including existing funds, in token base units.
value.policyRules
- Type:
0x${string} - Optional
Canonical policy rules for access key funding. Owners omit this field.
value.slippageBps
- Type:
numberType - Optional
Aggregate slippage in basis points. Omission uses the protocol default.
value.sources
- Type:
readonly Source[]
Sources attempted in order.
value.token
- Type:
abitype_Address
Requested output token.
Return Type
void

