Retrieves multiple possible routes for a cross-chain or same-chain swap, each with different trade-offs (speed, cost, safety).
Documentation Index
Fetch the complete documentation index at: https://docs.portalhq.io/llms.txt
Use this file to discover all available pages before exploring further.
Client API Key or Client Session Token (CST). Pass as a Bearer token in the Authorization header.
Source chain ID in CAIP-2 format (e.g. eip155:1).
Destination chain ID in CAIP-2 format (e.g. eip155:137).
Source token contract address.
Destination token contract address.
Amount to swap in the smallest unit of the source token.
Sender address.
Recipient address.
Amount of the source token to swap into destination-chain gas before bridging.
Optional routing preferences.
Routes retrieved successfully