# 操作

让我们逐步了解实现 USDC 进出 Stacks 跨链的各项操作。

### 定义

* **USDC**：指锁定在源链上的原生链 USDC，按 1:1 比例为 USDC 支持的代币提供保障。
* **xReserve 智能合约**：Circle 在以太坊等源区块链上部署并审计 xReserve 合约。它在 Stacks 上铸造 USDC 支持的代币时，保管用户存入的 USDC 作为储备。
* **xReserve 证明服务**：由 Circle 运营。他们监控流入 xReserve 智能合约的 USDC 存款，并签署存款证明。他们还验证提现证明以释放 USDC。
* **Stacks 证明服务**：由 Stacks 运营。他们监控已签名的存款证明，以触发在 Stacks 上铸造 USDCx。此外，他们还监控 USDCx 代币的销毁，以签署销毁意图，然后将其转发给 Circle 的 xReserve 证明服务。
* **USDCx**：Stacks 上一种由 USDC 全额支持的 SIP-010 代币。

### 存款

<div data-with-frame="true"><figure><img src="https://629346125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH74xqoobupBWwBsVMJhK%2Fuploads%2F9p7WDRdrpyVeB4b4pBub%2Fusdc-deposit.png?alt=media&#x26;token=84d6a3d5-3bca-4638-a41f-7460a8905090" alt=""><figcaption></figcaption></figure></div>

用于将源链 USDC 跨链转入 Stacks 网络。

1. 用户将其钱包应用中的 USDC 存入源链上由 Circle 管理的 xReserve 智能合约。
2. xReserve 合约发出存款事件并锁定资金，将其作为储备持有。
3. 由 Circle 管理的 xReserve 证明服务生成并签署一份存款证明。
4. Stacks 网络的证明服务获取已签名的存款证明。
5. Stacks 网络铸造 USDC 支持的代币 USDCx，并发出铸造事件。
6. Stacks 的 USDCx 代币合约将新铸造的 USDC 支持代币存入用户的 Stacks 钱包。

完成存款流程后，用户会在 Stacks 上收到等值的 USDC 支持代币。

### 提现

<div data-with-frame="true"><figure><img src="https://629346125-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH74xqoobupBWwBsVMJhK%2Fuploads%2FIinGDengKCB9IIwQggrM%2Fusdc-withdrawal.png?alt=media&#x26;token=51cbc8bc-c3fb-4dcb-9ab4-2b5c40463cb9" alt=""><figcaption></figcaption></figure></div>

用于从 Stacks 网络提取 USDC。

1. 用户请求在 Stacks 上销毁 USDCx 代币，并在目标网络上提取 USDC。
2. Stacks 的 USDCx 代币合约销毁其 USDCx 代币并发出销毁事件。
3. Stacks 网络的证明服务监控发出的销毁事件，然后在线下签署一条生成的销毁意图消息。
4. Stacks 网络的证明服务将销毁意图消息和签名传递给由 Circle 管理的 xReserve。
5. xReserve 验证销毁并发出提现证明。
6. xReserve 将 USDC 释放到用户在目标网络上的钱包。

完成提现流程后，用户会在目标网络上收到 USDC。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stacks.co/learn/zh/bridging/usdcx/operations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
