Get Li.Fi swap/bridge routes
Li.Fi
Get Li.Fi swap/bridge routes
Retrieves multiple possible routes for a cross-chain or same-chain swap, each with different trade-offs (speed, cost, safety).
POST
Get Li.Fi swap/bridge routes
Authorizations
Client API Key or Client Session Token (CST). Pass as a Bearer token in the Authorization header.
Body
application/json
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.
Response
Routes retrieved successfully