flashFulfill function to fulfill a same-chain intent with funds from that intent’s vault. The caller does not need to supply all route tokens from its own inventory.
When to use it
Use flash fulfillment when the intent’s source and destination are the same chain, the reward specifies the Local prover, and the vaulted funds can supply the route’s required assets. Route execution can include swaps or other contract calls.How it works
- Publish and fund the same-chain intent.
- A caller invokes
flashFulfillwith the route, reward, and claimant. - The Local prover withdraws the reward from the vault and approves the Portal to spend the required route tokens.
- The Portal fulfills the route through the Executor.
- The Local prover transfers the remaining reward-token and native-token balances to the claimant.
Integration boundaries
flashFulfill is a contract operation, not a guarantee that every same-chain API quote uses this path. Inspect the returned execution instructions when using the Routes API. A cross-chain intent cannot be fulfilled through the same-chain Local prover.
