Imperative Swap API Endpoints
Get Quote
GET
Query Parameters
Base58-encoded input mint address
Base58-encoded output mint address
Input amount as a scaled integer. For example, 1 SOL is 1000000000.
Required range:
x >= 0
Max allowed slippage % in basis points
Required range:
x >= 0
Comma-separated list of DEXes to include. If not specified, all DEXes will be included.
Comma-separated list of DEXes to exclude. If not specified, all DEXes will be included.
Optional platform fee in basis points
Required range:
x >= 0
Optional platform fee mode. If not specified, the default is outputMint
.
Available options:
outputMint
, inputMint
If true, only use single-leg routes
If specified, the route will be limited to the specified number of legs. Ignored if
only_direct_routes
is true.
Required range:
x >= 0
Response
200
application/json
Imperative swap quote
The response is of type object
.