> ## 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.

# 质押配方

> 通过 LI.FI Composer 质押到 Lido wstETH、EtherFi、Kinetiq 和 Kinetiq Earn 的复制粘贴配方。

通过 Composer 质押到支持的流性质押和再质押协议的复制粘贴配方。

<Note>
  所有配方都使用 `GET /quote` 端点。相同的 `toToken` 地址适用于 `POST /advanced/routes` 和 LI.FI SDK。完整集成指南请参见 [API 集成](/composer/guides/api-integration) 或 [SDK 集成](/composer/guides/sdk-integration)。
</Note>

***

## Lido wstETH

[Lido](https://stake.lido.fi/wrap) 是最大的流性质押协议。Composer 支持将 ETH 包装为 wstETH（存款和取款）。

### 同链：ETH → Ethereum 上的 wstETH

<CodeGroup>
  ```bash curl theme={"system"}
  curl -X GET 'https://li.quest/v1/quote?fromChain=1&toChain=1&fromToken=0x0000000000000000000000000000000000000000&toToken=0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0&fromAddress=0xYOUR_WALLET_ADDRESS&toAddress=0xYOUR_WALLET_ADDRESS&fromAmount=100000000000000000'
  ```

  ```ts TypeScript theme={"system"}
  const quote = await axios.get('https://li.quest/v1/quote', {
    params: {
      fromChain: 1,                                                 // Ethereum
      toChain: 1,                                                   // Ethereum (同链)
      fromToken: '0x0000000000000000000000000000000000000000',       // ETH (原生)
      toToken: '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',       // Ethereum 上的 wstETH
      fromAddress: '0xYOUR_WALLET_ADDRESS',
      toAddress: '0xYOUR_WALLET_ADDRESS',
      fromAmount: '100000000000000000',                             // 0.1 ETH (18 位小数)
    },
  });
  ```
</CodeGroup>

| 参数           | 值                                            | 说明                 |
| ------------ | -------------------------------------------- | ------------------ |
| `fromChain`  | `1`                                          | Ethereum           |
| `toChain`    | `1`                                          | Ethereum (同链)      |
| `fromToken`  | `0x0000000000000000000000000000000000000000` | ETH (原生代币)         |
| `toToken`    | `0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0` | Ethereum 上的 wstETH |
| `fromAmount` | `100000000000000000`                         | 0.1 ETH (18 位小数)   |

### 跨链：Arbitrum 上的 USDC → Ethereum 上的 wstETH

<CodeGroup>
  ```bash curl theme={"system"}
  curl -X GET 'https://li.quest/v1/quote?fromChain=42161&toChain=1&fromToken=0xaf88d065e77c8cC2239327C5EDb3A432268e5831&toToken=0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0&fromAddress=0xYOUR_WALLET_ADDRESS&toAddress=0xYOUR_WALLET_ADDRESS&fromAmount=1000000000'
  ```

  ```ts TypeScript theme={"system"}
  const quote = await axios.get('https://li.quest/v1/quote', {
    params: {
      fromChain: 42161,                                             // Arbitrum
      toChain: 1,                                                   // Ethereum
      fromToken: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',     // Arbitrum 上的 USDC
      toToken: '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',       // Ethereum 上的 wstETH
      fromAddress: '0xYOUR_WALLET_ADDRESS',
      toAddress: '0xYOUR_WALLET_ADDRESS',
      fromAmount: '1000000000',                                     // 1000 USDC (6 位小数)
    },
  });
  ```
</CodeGroup>

LI.FI 的路由引擎确定最优路径，可能包括跨链、兑换和质押，全部来自单次 API 调用。确切的执行步骤在路由响应中可见。

<Note>
  跨链流程需要通过 `GET /status` 进行状态轮询。完整执行流程请参见 [跨链 Composer 模式](/composer/guides/cross-chain-compose)。
</Note>

***

## EtherFi

[EtherFi](https://www.ether.fi/) 是一个流动性再质押协议。Composer 支持存款和取款。

### 同链：ETH → Ethereum 上的 EtherFi

<CodeGroup>
  ```bash curl theme={"system"}
  curl -X GET 'https://li.quest/v1/quote?fromChain=1&toChain=1&fromToken=0x0000000000000000000000000000000000000000&toToken=ETHERFI_TOKEN_ADDRESS&fromAddress=0xYOUR_WALLET_ADDRESS&toAddress=0xYOUR_WALLET_ADDRESS&fromAmount=100000000000000000'
  ```

  ```ts TypeScript theme={"system"}
  const quote = await axios.get('https://li.quest/v1/quote', {
    params: {
      fromChain: 1,                                                 // Ethereum
      toChain: 1,                                                   // Ethereum (同链)
      fromToken: '0x0000000000000000000000000000000000000000',       // ETH (原生)
      toToken: 'ETHERFI_TOKEN_ADDRESS',                              // EtherFi 代币地址
      fromAddress: '0xYOUR_WALLET_ADDRESS',
      toAddress: '0xYOUR_WALLET_ADDRESS',
      fromAmount: '100000000000000000',                             // 0.1 ETH
    },
  });
  ```
</CodeGroup>

***

## Kinetiq

[Kinetiq](https://kinetiq.xyz/) 是一个质押协议。Composer 支持存款操作。

### 同链：存入 Kinetiq

<CodeGroup>
  ```bash curl theme={"system"}
  curl -X GET 'https://li.quest/v1/quote?fromChain=CHAIN_ID&toChain=CHAIN_ID&fromToken=SOURCE_TOKEN_ADDRESS&toToken=KINETIQ_TOKEN_ADDRESS&fromAddress=0xYOUR_WALLET_ADDRESS&toAddress=0xYOUR_WALLET_ADDRESS&fromAmount=AMOUNT_IN_SMALLEST_UNIT'
  ```

  ```ts TypeScript theme={"system"}
  const quote = await axios.get('https://li.quest/v1/quote', {
    params: {
      fromChain: CHAIN_ID,
      toChain: CHAIN_ID,
      fromToken: 'SOURCE_TOKEN_ADDRESS',
      toToken: 'KINETIQ_TOKEN_ADDRESS',                              // Kinetiq 质押代币
      fromAddress: '0xYOUR_WALLET_ADDRESS',
      toAddress: '0xYOUR_WALLET_ADDRESS',
      fromAmount: 'AMOUNT_IN_SMALLEST_UNIT',
    },
  });
  ```
</CodeGroup>

***

## Kinetiq Earn (vkHYPE)

[Kinetiq Earn](https://kinetiq.xyz/stake-hype#kinetiq-earn) 是一个收益协议。Composer 支持存款操作。

### 同链：存入 Kinetiq Earn

<CodeGroup>
  ```bash curl theme={"system"}
  curl -X GET 'https://li.quest/v1/quote?fromChain=CHAIN_ID&toChain=CHAIN_ID&fromToken=SOURCE_TOKEN_ADDRESS&toToken=VKHYPE_TOKEN_ADDRESS&fromAddress=0xYOUR_WALLET_ADDRESS&toAddress=0xYOUR_WALLET_ADDRESS&fromAmount=AMOUNT_IN_SMALLEST_UNIT'
  ```

  ```ts TypeScript theme={"system"}
  const quote = await axios.get('https://li.quest/v1/quote', {
    params: {
      fromChain: CHAIN_ID,
      toChain: CHAIN_ID,
      fromToken: 'SOURCE_TOKEN_ADDRESS',
      toToken: 'VKHYPE_TOKEN_ADDRESS',                               // vkHYPE 代币地址
      fromAddress: '0xYOUR_WALLET_ADDRESS',
      toAddress: '0xYOUR_WALLET_ADDRESS',
      fromAmount: 'AMOUNT_IN_SMALLEST_UNIT',
    },
  });
  ```
</CodeGroup>

***

## 通用模式

所有质押配方都遵循相同的模式：

```
GET /quote
  fromChain  = 源链 ID
  toChain    = 目标链 ID（相同或不同）
  fromToken  = 您起始的代币
  toToken    = 质押/LST 代币地址（这会触发 Composer）
  fromAmount = 最小单位的金额
  fromAddress = 您的钱包
  toAddress   = 您的钱包（接收质押代币）
```

**唯一的 Composer 特定细节**是 `toToken` 必须是支持的质押协议的代币地址。

***

## 下一步

<CardGroup cols={2}>
  <Card title="金库存款配方" icon="vault" href="/composer/recipes/vault-deposits">
    Morpho、Euler、Felix 金库配方
  </Card>

  <Card title="借贷配方" icon="building-columns" href="/composer/recipes/lending">
    Aave V3、HyperLend、Seamless 借贷配方
  </Card>

  <Card title="支持的协议" icon="list" href="/composer/reference/supported-protocols">
    支持的协议和功能的完整列表
  </Card>

  <Card title="跨链模式" icon="bridge" href="/composer/guides/cross-chain-compose">
    单个流程中的跨链 + 质押
  </Card>
</CardGroup>
