quote
Retrieve a quote to be used in POST /swap
.
Refer to Swap API doc for more information.
Query Parameters |
---|
inputMint string — REQUIREDInput token mint address |
outputMint string — REQUIREDOutput token mint address |
amount integer — REQUIREDAtomic value to swap (Before applying decimals)
|
slippageBps integerDefault: 50
|
swapMode stringPossible values: [ Default: ExactIn
|
dexes string[]Default: Include ALL DEXes
|
excludeDexes string[]Default: Exclude NONE of the DEXes
|
restrictIntermediateTokens boolean
|
onlyDirectRoutes booleanDefault: false
|
asLegacyTransaction booleanDefault: false
|
platformFeeBps integer
|
maxAccounts integerRecommended: 64
|
Responses | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 Successful response
|