> ## Documentation Index
> Fetch the complete documentation index at: https://docs.li.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# 概述

> 在任意 EVM 链上实现一键式 DeFi 存入、质押和借贷。将交换、桥接和协议交互打包进单个 flow。

LI.FI Composer 将协议交互（存入、质押、借贷）打包进**跨任意 EVM 链的单个 flow**。用户无需在多个协议之间来回操作并签署多笔交易，而是一键完成 DeFi 工作流。

<Note>
  **无需自定义集成。** 如果你已经在使用 LI.FI API、SDK 或
  Widget，你就已经拥有了 Composer。将 `toToken` 设置为[受支持协议](/composer/protocols-and-chains)的代币地址，Composer 就会自动激活。
</Note>

***

## 试一试

通过单次 API 调用将 1 USDC 存入 Base 上的 Morpho vault：

<CodeGroup>
  ```bash curl theme={"system"}
  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'
  ```

  ```ts TypeScript theme={"system"}
  import axios from "axios";

  const quote = await axios.get("https://li.quest/v1/quote", {
    params: {
      fromChain: 8453, // Base
      toChain: 8453, // Base (same-chain)
      fromToken: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", // USDC on Base
      toToken: "0x7BfA7C4f149E7415b73bdeDfe609237e29CBF34A", // Morpho vault token
      fromAddress: "YOUR_WALLET_ADDRESS",
      toAddress: "YOUR_WALLET_ADDRESS",
      fromAmount: "1000000", // 1 USDC (6 decimals)
    },
  });

  console.log(quote.data);
  ```
</CodeGroup>

<Card title="Run your first Composer transaction" icon="rocket" href="/composer/lifi-api/quickstart">
  按照分步快速入门，在 5 分钟内执行你的第一笔 Composer 交易。
</Card>

***

## 选择你的集成路径

<CardGroup cols={3}>
  <Card title="API" icon="code" href="/composer/lifi-api/guides/api-integration">
    直接进行 REST API 集成，完全掌控 Composer flow。
  </Card>

  <Card title="SDK" icon="cube" href="/composer/lifi-api/guides/sdk-integration">
    使用 LI.FI TypeScript SDK 进行托管式执行、状态跟踪和
    错误处理。
  </Card>

  <Card title="Widget" icon="window" href="/composer/lifi-api/guides/widget-integration">
    即插即用的 UI 组件。Composer 自动运行，无需任何额外
    代码。
  </Card>
</CardGroup>

***

## 当前限制

* **仅支持 EVM 链。** 跨链存入支持在各 EVM 链之间进行。Solana 和其他非 EVM 链尚不支持。
* **仅支持代币化头寸。** Composer 的目标必须返回一个代币（例如 vault 代币、LP 代币、LST）。

***

## 安全性

所有 LI.FI 智能合约，包括 Composer 链上 VM，在部署到生产环境之前都会经过独立的安全审计。LI.FI 维护着一个 1,000,000 美元的漏洞赏金计划以及实时合约监控。

<Card title="Security and Audits" icon="shield" href="/introduction/learn-more/security-and-audits">
  审计报告、漏洞赏金计划和监控详情。
</Card>

***

## 后续步骤

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/composer/lifi-api/quickstart">
    在 5 分钟内执行你的第一笔 Composer 交易
  </Card>

  <Card title="API Integration" icon="code" href="/composer/lifi-api/guides/api-integration">
    分步 REST API 集成演练
  </Card>

  <Card title="How It Works" icon="diagram-project" href="/composer/composer-101">
    链上 VM、eDSL 编译器和交易生命周期
  </Card>

  <Card title="Recipes" icon="book" href="/composer/lifi-api/recipes/vault-deposits">
    可复制粘贴的 vault、质押和借贷存入 recipe
  </Card>

  <Card title="Cross-Chain Compose" icon="bridge" href="/composer/lifi-api/guides/cross-chain-compose">
    跨 EVM 链的桥接 + 存入模式
  </Card>

  <Card title="Withdrawals" icon="clock" href="/composer/lifi-api/guides/withdrawals">
    通过 Composer 从协议头寸提款
  </Card>
</CardGroup>

<script type="application/ld+json">
  {`{
    "@context": "https://schema.org",
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "What is LI.FI Composer?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "LI.FI Composer bundles multiple onchain actions, including swaps, bridges, deposits, and staking, into a single transaction."
        }
      },
      {
        "@type": "Question",
        "name": "Do I need a custom integration to use Composer?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "No. Composer works out of the box with the LI.FI API, SDK, and Widget."
        }
      },
      {
        "@type": "Question",
        "name": "Who is Composer for?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "Composer is built for wallet and DeFi platforms, onchain protocols such as lending, staking, and vault protocols, and protocol teams that want to expand user accessibility."
        }
      }
    ]
    }`}
</script>
