@armada/sdk / index / assertPreflight
Function: assertPreflight()
assertPreflight(
result):void
Defined in: src/tx/preflight.ts:180
Throw the typed error for the first failed finding (no-op when result.ok): root-freshness → RootMismatchError, nullifier-unspent → NoteAlreadySpentError (SPEC §6.5: e.g. a claim that lost the race), fee-quote-expiry → FeeQuoteExpiredError, balance-sufficiency → InsufficientBalanceError, and cctp-liveness / shield-pause → InvalidRequestError. For callers whose policy is "any failed check stops the spend".
Parameters
result
Returns
void