Skip to main content
GET

Query Parameters

string
required
Input token address (use 0x0000000000000000000000000000000000000000 for native ETH)
string
required
Output token address (use 0x0000000000000000000000000000000000000000 for native ETH)
string
Amount of input token (in smallest unit). Either amount or amountOut must be provided
string
Desired amount of output token (in smallest unit). Either amount or amountOut must be provided
string
Slippage tolerance in basis points (e.g., 100 = 1%). Range: 0-10000
boolean
default:"false"
Whether to build the transaction data
string
User’s wallet address (required if buildTx is true)

Response

string
Actual input amount in smallest unit
string
Expected output amount in smallest unit
string
Minimum output amount after slippage (if slippage provided)
string
Maximum input amount after slippage (if using exact output)
string
Exchange rate for this specific trade (accounts for price impact)
string
Current spot price without price impact
array
Token addresses in the swap route
number
Estimated price impact percentage (0-1)
string
Total LP fees in input token amount
object
Additional quote information
object
Transaction data (if buildTx is true)