Skip to main content
LI.FI Composer bundles multiple onchain actions (swaps, bridges, deposits, staking) into a single transaction. Instead of navigating multiple protocols and signing dozens of transactions, your users complete complex DeFi workflows in one click.
No custom integration required. Composer works out-of-the-box with the LI.FI API, SDK, and Widget. If you already use LI.FI, you already have Composer.

Why Use Composer?

  • Single Transaction Execution — Multiple actions completed in one transaction. Users sign once, pay gas once.
  • Lower Gas Costs — Batching actions eliminates per-step transaction fees.
  • Simulated Before Execution — The entire execution path is simulated before submitting onchain, preventing failed transactions and giving users certainty about outcomes.
  • Atomic (Same-Chain) — Same-chain compositions execute atomically: all steps succeed or none do.
  • Cross-Chain Composability — Composer plugs into LI.FI’s full routing engine for cross-chain swap + bridge + deposit flows.
  • Works Everywhere — Available through the API, SDK, and Widget with zero additional integration.

Try It Out

Deposit 1 USDC into a Morpho vault on Base with a single API call:
curl -X GET 'https://li.quest/v1/quote?\
fromChain=8453&\
toChain=8453&\
fromToken=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&\
toToken=0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A&\
fromAddress=YOUR_WALLET_ADDRESS&\
toAddress=YOUR_WALLET_ADDRESS&\
fromAmount=1000000'
Set toToken to a supported protocol’s token address and Composer activates automatically. No extra parameters or configuration needed.

Run your first Composer transaction

Follow the step-by-step quickstart to execute your first Composer transaction in under 5 minutes.

Choose Your Integration Path


How It Works

Composer uses two core components:
  1. Onchain VM (Execution Engine) — A smart contract that can call any other onchain protocol or series of them, handling all execution without requiring users to understand blockchain interactions.
  2. eDSL and Compiler — A purpose-built domain-specific language to express contract interactions in TypeScript. This gets compiled to bytecode for the VM to execute onchain.
When you request a quote with a vault token as the toToken, LI.FI’s routing engine automatically:
  • Identifies the optimal path (swap, bridge, or both)
  • Compiles the Composer instructions
  • Simulates the full execution path
  • Returns a ready-to-sign transaction

Deep dive into Composer architecture

Learn about the Onchain VM, eDSL compiler, dynamic calldata injection, and the full transaction lifecycle.

Supported Protocols

Composer currently supports the following protocols. The team is open to integration requests based on technical feasibility and community feedback.
ProtocolTypeActionsLink
Morpho V1 & V2Lending / VaultsDeposit, Withdrawmorpho.org
Aave V3LendingDeposit, Withdrawaave.com
EulerLendingDeposit, Withdraweuler.finance
PendleYieldDeposit, Withdrawpendle.finance
Lido wstETHLiquid StakingDeposit, Withdrawlido.fi
EtherFiLiquid StakingDeposit, Withdrawether.fi
EthenaYieldDepositethena.fi
KinetiqStakingDepositkinetiq.xyz
Kinetiq Earn (vkHYPE)YieldDepositkinetiq.xyz
Felix VanillaVaultsDeposit, Withdrawusefelix.xyz
HyperLendLendingDeposit, Withdrawhyperlend.finance
MapleLendingDepositmaple.finance
NeverlandVaultsDeposit, Withdrawneverland.money
USDaiYieldDeposit, Withdrawusd.ai
SeamlessLendingDeposit, Withdrawseamlessprotocol.com

Full protocol reference

View all supported protocols, their types, actions, and links.

Who Is Composer For?

Offer users sophisticated onchain actions directly in your app. Composer reduces user friction while expanding the breadth of DeFi operations your platform supports. Create campaigns for user engagement — e.g., “deposit into new protocol” promotions.
Enable 1-click cross-chain deposits into your protocol. Users with assets on any supported chain can deposit into your protocol without leaving their current app.
Get your protocol integrated as a Composer target to expand user accessibility and adoption. Partner protocols can be invited to the Composer backend codebase. See For Protocol Teams.

Current Limitations

  • EVM chains only — No Solana or non-EVM chain support yet
  • Tokenised positions only — Composer targets must return a token (e.g., vault tokens, LP tokens, LSTs)

Next Steps