Considerations

  • Use RAW values from the quote: amountOut (RAW input) and minAmountIn (RAW output) must be passed verbatim to /buildTransaction and ultimately to the router call.

  • Approvals: approve the router for fromTokenAddress and at least amountOut.

  • Stability: the builder does not re-quote or change routes; it builds calldata for the exact quote you provide.

  • Route metadata: routerType, multihop, and path are authoritative; pass them through as given.

  • Errors: if on-chain pre-simulation fails, check allowance, balances, path ordering, and whether you mixed HUMAN vs RAW amounts.

Last updated