> For the complete documentation index, see [llms.txt](https://docs.rome.builders/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rome.builders/zh/canton-zk-evm/use-cases.md).

# 用例

你今天可以在 Ostia DevNet 或你自己的网络上完成什么，以及每个用例背后的组件，以及你是否可以独立完成。

以下每个用例都标注了外部用户目前可以如何操作：

* **现在即可在 DevNet 上操作。** 你可以使用浏览器钱包或公共 RPC 自行操作。
* **由 Rome 在 DevNet 上运行的演示。** 该功能已在 DevNet 上运行，但参与方和交易场所均由 Rome 运行。你目前还无法在那里自行操作。
* **在你自己的网络上操作。** 你可以通过运行自己的 Ostia 来实现。

每项说明都会列出所用组件。 [使用 Canton 构建](https://docs.rome.builders/zh/canton-zk-evm/build-with-canton.md) 中包含各组件的详细信息。

**当前的信任对象。** Rome 运行证明者和唯一的确认参与方。Rome 的参与方负责托管 Canton Coin，并管理双生代币。代码和 ZisK（alpha）均未经审计。此功能仅限 DevNet。请参阅 [信任模型与限制](https://docs.rome.builders/zh/canton-zk-evm/trust-model.md).

**如需申请目前尚无法使用的功能**，例如为你自己的 ERC-20 创建双生代币，请在 [代码仓库](https://github.com/rome-protocol/canton-zk-evm/issues) 中提交议题，或在 Rome 的 [Discord](https://discord.gg/vZ9rnCdNSB)中提出请求。Rome 会逐案决定，且不承诺完成日期。

## 在一个会向 Canton 提交承诺的链上部署 Solidity 应用

现在即可在 DevNet 上操作。组件：公共 RPC、Foundry 或 Hardhat、区块浏览器的合约验证功能。

像在 Ethereum 上一样部署合约、验证源代码，并在区块浏览器中查看每个区块及其对应的 Canton 记录。ERC-20、ERC-721、ERC-1155、ERC-3643 许可型代币、Uniswap V2，以及用于验证 TACEO Merces 证明的合约，都已在 Ostia 上运行；RedStone 价格数据使用者合约也已部署并通过验证。这些操作由你自行完成。请参阅 [在 Ostia 上构建](https://docs.rome.builders/zh/canton-zk-evm/build-on-ostia.md).

## 在 EVM 合约中使用 Canton Coin

由 Rome 在 DevNet 上运行的演示；启用 Canton 钱包连接后，你即可自行操作。组件：CC ERC-20、网关、Bridge 页面。

在 Bridge 页面存入 Canton Coin，它会以 CC 的形式到达 Ostia。CC 是一种有 10 位小数、可由任何合约持有和转移的 ERC-20 代币。提取后，Canton Coin 会返回你的 Canton 钱包。请参阅 [Bridge](https://docs.rome.builders/zh/canton-zk-evm/bridge.md).

## 将 EVM 代币作为双生代币映射到 Canton

由 Rome 在 DevNet 上运行的演示，使用 WtROME 和 TKA；新代币也由 Rome 运行。组件：金库、ERC-20 双生代币、双生代币注册服务。

将 ERC-20 存入金库后，Canton 参与方会持有其双生代币，即 CIP-0056 代币。赎回双生代币后，ERC-20 会退回。目前，TKA 和 WtROME 在 DevNet 上都有双生代币。新双生代币由 Rome 注册；如需申请，请参阅本页顶部的说明。

目前只有由 Rome 运行的参与方持有双生代币。外部 Canton 钱包尚不能持有或发送这些代币，因为托管钱包所属参与方的验证器必须先持有双生代币包。请参阅 [使用 Canton 构建](https://docs.rome.builders/zh/canton-zk-evm/build-with-canton.md#erc-20-twins-on-canton).

## 使用 ERC-20 为 Canton 分配付款

由 Rome 在 DevNet 上运行的演示。组件：网关的 `pay`, `DvpTerms`.

通过网关进行的 ERC-20 付款，会在包含该付款的区块对应的同一笔 Canton 交易中执行一项 Canton 分配。该功能已在 DevNet 的区块 783 和 1471 中运行。目前由 Rome 使用测试参与方运行；如要在你自己的参与方之间运行，请运行自己的网络。

## 将 Canton 代币兑换为 ERC-20

由 Rome 在 DevNet 上运行的演示。组件： `otc-venue` Daml 应用、链上的 `VenueTrade` 和 `FundedClaim`，以及网关。

卖方提出以 Canton 代币换取买方的 ERC-20，交易场所负责执行交易。卖方的分配与买方的付款在同一笔 Canton 交易中执行。该功能于 2026-10-27 在 DevNet 上运行，交易为 TKB 换 TKA，位于区块 16816；区块浏览器显示该交易位于 [`/swaps`](https://ostia.devnet.romeprotocol.xyz/swaps)。DevNet 上的交易场所由 Rome 运行，目前已运行过一次。如要运行自己的交易场所，请运行自己的网络。

## 使用你自己的链测试 Canton 应用

在你自己的网络上操作。组件：本地 Canton 网络、演示程序、区块浏览器。

[运行你自己的 Ostia](https://docs.rome.builders/zh/canton-zk-evm/run-it-locally.md) 可在你的机器上启动整套服务，并使用你自己的参与方。你可以在其中执行存款、支付、提款和场内交易，无需依赖 Rome。

## 读取并检查已结算的内容

现在就在 DevNet 上操作。包含：浏览器的 API，以及在浏览器中验证证明。

通过浏览器的 API 读取区块、legs、twins 和 swaps，这些 API 无需密钥（`/api/legs`, `/api/twins`, `/api/swaps`）。点击 Verify 按钮，即可在浏览器中检查任意区块的证明。参见 [浏览器](https://docs.rome.builders/zh/canton-zk-evm/explorer.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.rome.builders/zh/canton-zk-evm/use-cases.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
