Get multiple swap routes
Swap
Get Routes
Get multiple swap routes for comparison
GET
Get multiple swap routes
Returns multiple available routes for a swap, allowing you to compare options and let the user choose. UnlikeDocumentation Index
Fetch the complete documentation index at: https://docs.hypermid.io/llms.txt
Use this file to discover all available pages before exploring further.
/v1/quote which returns only the best route, this endpoint returns all viable routes.
You can also use POST /v1/routes with a JSON body for complex queries.
Source chain ID.
Destination chain ID.
Source token contract address.
Destination token contract address.
Amount to swap in the smallest unit.
Sender wallet address.
Recipient wallet address. Defaults to
fromAddress.Maximum slippage tolerance. Default:
0.03.Maximum number of routes to return. Default:
5.Sort routes by
output (highest output first), speed (fastest first), or gas (lowest gas first). Default: output.Authorizations
Partner API key. Optional for public endpoints, required for /v1/partner/*.
Query Parameters
Source chain ID
Source token address
Amount in base units
Destination chain ID
Destination token address
Sender wallet address
Recipient wallet address
Slippage tolerance
Available options:
RECOMMENDED, FASTEST, CHEAPEST, SAFEST