POST /solveIntent
Last updated
Last updated
This endpoint takes an intent request, converts it into an executable transaction sequence and returns an unsigned EVM transaction that can be signed and broadcasted on chain.
This API is designed for developers who need to execute DeFi transactions, from simple swaps to complex, multi-step transactions involving multiple primitives (e.g. multi-swap, bridge, lend, borrow, manage liquidity). It simplifies the process of generating an executable transaction that is ready for signing and submission.
Developers and traders can use this API to:
Optimise execution paths: Haiku Intents automatically calculates the best routes for completing a multi-asset transaction across supported protocols.
Finalise trade execution: Convert a validated intent into an executable transaction sequence. The API returns a single, unsigned transaction that bundles all actions atomically.
Confirm allowances: Ensure all ERC-20 and Permit2 approvals are handled before transaction submission.
Streamline workflow: Use in conjunction with previous API calls to ensure seamless error-free trade execution.
Headers
Body
quoteId
string
The id of your quote from /quoteIntent
permit2Signature
string
The permit2 signature obtained from the user
userSignature
string
The signature for post-bridge operations obtained from the user, if isComplexBridge
If successful, the API returns an unsigned EVM transaction that can be signed and broadcasted.
to
string
The Haiku router address on that chain
data
string
The custom calldata generated to acheive your trading objective
value
string
Amount of gas token to send with the tx
Use this API after confirming that all tokens are valid and compatible via the API and after previewing trade details using the , and constructing intents via the API. This ensures that all approvals and parameters are prepared before executing a trade on chain.
Base URL: /