A Fuse intent is a structured EIP-712 message describing the outcome a user wants. Solvers compete to settle it.Documentation Index
Fetch the complete documentation index at: https://docs.dzap.io/llms.txt
Use this file to discover all available pages before exploring further.
Intent types
The SDK exports three intent type sets, one per execution shape:| Type | When | EIP-712 type |
|---|---|---|
| Swap | Same-chain swap | DzapUserIntentSwapTypes |
| Swap+Bridge | Cross-chain swap with destination action | DzapUserIntentSwapBridgeTypes |
| Bridge | Pure cross-chain transfer | DzapUserIntentBridgeTypes |
Intent fields
Every intent carries:executorFeesHash, swapDataHash) bind the off-chain intent to the exact on-chain action. A solver cannot rewrite the swap and reuse your signature.
Lifecycle
Quote
Frontend asks
getZapQuote(). Response includes txId, candidate steps, and the typed-data structure to sign.Sign
User signs the EIP-712 typed data with their wallet. Output: a signature bound to the intent hash.
Why intents instead of transactions?
- Gasless — solver pays gas; user pays only via the swap output.
- Atomic outcome — user signs the destination state, not the path.
- Composable — intents compose with bundles (multi-leg flows).