Skip to main content
Composer activates automatically when 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:
  1. Identifies this as a Composer route
  2. Finds the optimal path (swap, bridge, or both) to acquire the underlying asset
  3. Compiles the Composer instructions (eDSL → bytecode)
  4. Simulates the full execution path
  5. Returns a transactionRequest ready to sign

Composer-Relevant Parameters

These parameters are part of the standard GET /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 route
  • quote.toolDetails.key: same value, with additional name and logoURI
  • quote.includedSteps[].tool: tool used in each step of the route
Composer activates automatically when 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 the tool 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

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