Prerequisites
Flow
1
Validate token support
Call
/api/v1/pair-config with from and to. Stop if supported=false.2
Convert the amount
Convert the user-entered human-readable amount with
decimalsIn. See Token amounts.3
Quote without sender for preview
Call
/api/v1/quote with amountIn or amountOut. Use the response for display only.4
Requote with sender at confirmation
Pass
sender when the user confirms. This lets the service build a transaction object when nonce and gas simulation succeed.5
Sign and broadcast
Sign the returned
transaction, or build a transaction from txData using the correct token transfer shape, then broadcast.Implementation Checklist
Minimal TypeScript Shape
Verify Before Signing
pair.supportedistrue.amountInis an integer string in the input token’s smallest unit.amountOutMinmatches the slippage shown in the UI.transaction.senderequals the connected wallet whentransactionis present.- The quote was requested after the latest user change to token, amount, slippage, or sender.

