Query Parameters
Input token address (use
0x0000000000000000000000000000000000000000
for native ETH)Output token address (use
0x0000000000000000000000000000000000000000
for native ETH)Amount of input token (in smallest unit). Either
amount
or amountOut
must be providedDesired amount of output token (in smallest unit). Either
amount
or amountOut
must be providedSlippage tolerance in basis points (e.g., 100 = 1%). Range: 0-10000
Whether to build the transaction data
User’s wallet address (required if
buildTx
is true)Response
Actual input amount in smallest unit
Expected output amount in smallest unit
Minimum output amount after slippage (if slippage provided)
Maximum input amount after slippage (if using exact output)
Exchange rate for this specific trade (accounts for price impact)
Current spot price without price impact
Token addresses in the swap route
Estimated price impact percentage (0-1)
Total LP fees in input token amount
Additional quote information
Transaction data (if
buildTx
is true)