toToken is set to a supported protocol token address. No additional parameters are needed beyond the standard LI.FI quote parameters.
How toToken Triggers Composer
When toToken corresponds to a supported vault/staking/deposit token, LI.FI’s routing engine automatically:
- Identifies this as a Composer route
- Finds the optimal path (swap, bridge, or both) to acquire the underlying asset
- Compiles the Composer instructions (eDSL → bytecode)
- Simulates the full execution path
- Returns a
transactionRequestready to sign
Composer-Relevant Parameters
These parameters are part of the standardGET /quote and POST /advanced/routes endpoints. They are not Composer-specific, but are particularly relevant when building Composer integrations.
Identifying Composer Routes
The Composer tool name
Composer’s tool identifier is"composer". This string appears in:
quote.tool: top-level tool used for the routequote.toolDetails.key: same value, with additionalnameandlogoURIquote.includedSteps[].tool: tool used in each step of the route
toToken matches a supported protocol token. You cannot filter for or against Composer routes at the request level. It is determined by the toToken address.
Detecting Composer routes in your application
Use thetool field in the response to build conditional UI:
Controlling bridges and exchanges
You can control which bridges or DEX aggregators are used within a Composer route using the standard bridge/exchange filter parameters:Full Parameter Reference
For complete endpoint documentation, parameter lists, and authentication details, see:GET /quote
Single-step quote endpoint with all parameters
POST /advanced/routes
Multi-route endpoint with all parameters
Quote vs Route
When to use each endpoint
API Overview
Base URL, authentication, and rate limits
Related Pages
API Integration Guide
Step-by-step Composer integration with response schema
Withdrawals Guide
Implement withdraw routes with the same API surface
Error Handling
Handle Composer-specific errors
Supported Protocols
Full list of supported vault/staking tokens with example addresses

