POST
GetQuote

Headers

x-api-key
string

Optional. Without a key the request is rate limited per client IP and quotes carry extra spread.

Body

application/json
srcChain
string
dstChain
string
srcToken
string
dstToken
string
amount
string
recipient
string
refundAddress
string
slippageBps
integer<int32>
Required range: x >= 0
srcSlippageBps
integer<int32>
Required range: x >= 0
referrers
object[]
gasDrop
string
gasless
boolean
sponsorFees
boolean
tradeType
enum<string>
Available options:
TRADE_TYPE_UNSPECIFIED,
TRADE_TYPE_EXACT_INPUT,
TRADE_TYPE_EXPECTED_OUTPUT,
TRADE_TYPE_EXACT_OUTPUT
supportedParamsVersion
integer<int32>
Required range: x >= 0
sponsorGasMax
string
depositor
string

Response

OK

Exactly one of crossChain, sameChainSwap is set.

crossChain
object
sameChainSwap
object