Considerations
Use RAW values from the quote:
amountOut(RAW input) andminAmountIn(RAW output) must be passed verbatim to/buildTransactionand ultimately to the router call.Approvals: approve the router for
fromTokenAddressand at leastamountOut.Stability: the builder does not re-quote or change routes; it builds calldata for the exact quote you provide.
Route metadata:
routerType,multihop, andpathare authoritative; pass them through as given.Errors: if on-chain pre-simulation fails, check allowance, balances,
pathordering, and whether you mixed HUMAN vs RAW amounts.
The documentation covers the basic steps for collecting a quote and building call data for execution in the smart contract router to perform a swap. Additional steps can be added or modulated into functions at the developer's discretion, such as adding a swapIntent to register the swap in a database.
Last updated

