Skip to main content
POST
Generate a swap quote

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Body

application/json
from
object
required
to
object
required
maxPriceImpact
number

The price impact threshold above which routes are hidden. As an example, one should specify 0.15 (15%) to hide routes with more than 15% price impact. The default is 10%.

Required range: 0 <= x <= 1
order
enum<string>

Route optimization preference.

Available options:
CHEAPEST,
FASTEST
slippage
number

Slippage tolerance (e.g. 0.005 for 0.5%)

Required range: 0 <= x <= 1

Response

Swap quote

from
object
required
id
string
required

Unique identifier of the swap quote

steps
object[]
required

List of steps required to execute the swap

to
object
required
approvalAddress
string

Address that needs token approval (spender), if applicable

feeCosts
object[]

List of fee costs associated with the swap

gasCostUSD
string

Total estimated gas cost in USD

signingPayload
object

Chain-aware signing payload. Which fields are populated depends on chainName: EVM uses evmTransaction + optional evmApproval. SOL and SUI use serializedTransaction. BTC uses psbt. TRON uses tronTransaction.

Last modified on July 24, 2026