toToken is set to a supported protocol token address. No additional parameters are needed.
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 as a Tool
Composer is classified as a tool in the LI.FI API, similar to bridges and DEX aggregators. Composer routes appear alongside bridge and swap routes in API responses. As with any LI.FI tool, integrators can useallowTools / denyTools to include or exclude Composer from their routing preferences.
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 walkthrough
Error Handling
Handle Composer-specific errors
Supported Protocols
Full list of supported vault/staking tokens
Status Tracking
Track transaction status after execution

