> 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/bridge.md).

# 桥接

在 Bridge 页面上，在 Ostia 和 Canton 之间转移代币：Ostia 端使用浏览器钱包，Canton 端使用您已有的 Canton 钱包。单签名 Bridge 账户已停用

Ostia 浏览器中的 Bridge 页面可在 Ostia 与 Canton 之间转移代币。在 Ostia 端，您需要使用 MetaMask 等浏览器钱包。在 Canton 端，您使用已有的 Canton 钱包：Ostia 不会创建 Canton 钱包，页面也不会为您生成 Canton 密钥。

打开 [ostia.devnet.romeprotocol.xyz/bridge](https://ostia.devnet.romeprotocol.xyz/bridge)。该页面运行于 Canton DevNet。这里的代币是没有价值的测试代币。

## Bridge 当前状态

| 日期         | 变更内容                                                                                                                                                                                                                                                            |
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 2026-11-17 | Bridge 账户及其服务已在 DevNet 上停用。Bridge 账户是一个 Canton 账户，页面曾通过一次钱包签名创建该账户，并将密钥保存在浏览器中。该页面现在不再提供登录功能，不会根据签名生成密钥，也不会在浏览器中保存密钥（并会删除先前访问时保存的密钥），且没有 Canton Coin 水龙头。页面创建的账户会连同其持有的资产留在 Canton DevNet 上，直到 DevNet 重置为止：现在已没有任何服务会接受这些账户的密钥，因此任何人（包括 Rome）都不会再代表这些账户签名或提交交易。 |

页面内置了连接 Canton 钱包的功能，并会逐个钱包启用。在某个钱包启用此功能之前，页面上的按钮会显示 **连接您的 Canton 钱包** ，并带有“即将推出”标签；凡是包含 Canton 步骤的转移，都无法从页面发起。目前尚未确定启用日期。现在，页面可执行的操作都在 Ostia 端：连接钱包、将钱包切换到 Ostia、获取测试 tROME，以及查看代币列表和余额。

## 先获取测试 tROME

在 Ostia 上进行任何转移都需要少量 tROME 支付费用，因此请先获取测试 tROME。钱包中尚无 tROME 时，Bridge 页面会显示“获取测试 tROME”按钮，开发者可在此领取 100 tROME 补助（参见 [获取测试币](#get-test-coins)）。持有 tROME 后，请前往 Faucet 页面领取开发者补助。

## 连接您的 Canton 钱包

先连接浏览器钱包，然后点击 **连接您的 Canton 钱包** ，并在您已有的 Canton 钱包中批准连接。页面会显示其构建版本支持的钱包；钱包会展示转移中的每个 Canton 步骤并为其签名。页面不会在 Canton 上签名，也绝不会要求您的浏览器钱包签署用于生成 Canton 密钥的内容。

首次连接时，页面会要求钱包一次性选择加入：您需要在钱包中批准两个步骤，一个用于在 Canton 上接收 Ostia 代币，另一个用于接收从 Ostia 提取的资产，例如退回的 Canton Coin。若某个 party 尚未选择加入，则向其锁定资产的操作会在支付任何费用前被拒绝。

重新加载页面后，钱包仍会保持连接。要断开连接，请点击 **断开连接** （位于弹出面板中）。

只有当托管其 party 的所有验证者都已审核通过 Ostia 的 Daml 软件包时，Canton 钱包才能与 Ostia 配合使用。如果钱包无法执行某个步骤，会向您说明。请参阅 [已审核的软件包](https://docs.rome.builders/zh/canton-zk-evm/vetted-packages.md) 和 [使用 Canton 构建](https://docs.rome.builders/zh/canton-zk-evm/build-with-canton.md#erc-20-twins-on-canton).

## 您的地址

连接后，账户面板会并排显示两个地址：

* **您在 Ostia 上的钱包**，即您的浏览器钱包地址。
* **您在 Canton 上的账户**，即您所连接的 Canton 钱包对应的 party。连接钱包前，此处会显示“未连接”。

每个地址旁都有一个“复制”按钮。面板还会显示页面所列各代币的 Canton 余额，例如 Canton Coin、TKA 和 tROME（WtROME 的孪生代币）。余额最多显示 6 位小数，并向下取整；点击“最大值”会填入精确金额。在 Canton 上发送和接收代币都需要通过您的 Canton 钱包完成。

## 获取测试币

页面提供测试 tROME：

* 所有人每天可从浏览器的水龙头领取 1 tROME（参见 [浏览器](https://docs.rome.builders/zh/canton-zk-evm/explorer.md#use-the-trome-faucet)).
* 开发者使用 GitHub 登录后可领取 100 tROME，入口为“获取测试 tROME”（仅在钱包中尚无 tROME 时显示；否则请使用 Faucet 页面）。GitHub 账户必须已注册满 30 天；每个 GitHub 账户和每个地址每 7 天可领取一次。请参阅 [开发者补助](https://docs.rome.builders/zh/canton-zk-evm/devnet.md#the-builder-grant).

页面没有 Canton Coin 水龙头。请通过您自己的 Canton 钱包获取测试 Canton Coin。

## 四种转移方式

| 转移方式                 | 操作说明                                                                    |
| -------------------- | ----------------------------------------------------------------------- |
| Ostia 代币转至 Canton    | 您将 Ostia 代币（tROME 或 TKA）存入 Ostia 上的金库。随后，您 Canton 钱包的 party 会持有等量的孪生代币。 |
| 孪生代币转回 Ostia         | 您在 Canton 钱包中赎回孪生代币。金库会将 ERC-20 代币支付到您的 Ostia 地址。                       |
| Canton Coin 转至 Ostia | 您从 Canton 钱包存入 Canton Coin。它会以 CC 代币的形式到达 Ostia。                        |
| 将 CC 转回 Canton       | 你提取 CC。你的 Canton 钱包会收到 Canton Coin。                                     |

每个 Canton 步骤都需要在你的 Canton 钱包中批准。tROME 会先包装，因此它的孪生代币代表 WtROME；它从 Canton 转回时也会是 WtROME。如果你的地址持有 TKA，TKA 也会以相同方式转移。 [存入、提取和付款](https://docs.rome.builders/zh/canton-zk-evm/deposits-withdrawals-payments.md) 介绍每次转移涉及的各个步骤，而 [Ostia DevNet](https://docs.rome.builders/zh/canton-zk-evm/devnet.md#canton-assets-on-devnet) 则列出代币地址。

金额可按你习惯的方式输入： `.5` 可识别为 0.5。

每次转移会弹出以下浏览器钱包确认窗口：锁定 TKA 需要 2 次，锁定 tROME 需要 3 次（包装、批准、付款），其他每种转移都需要 1 次。Canton 步骤需在你的 Canton 钱包中批准。Move 按钮下方会说明预计需要确认几次。

## 已发送、已证明、已最终确认

每次转移都会显示三个标记：

* **已发送**：页面已发送交易。
* **已证明**：包含该交易的区块已有证明。
* **已最终确认**：该区块已在 Canton 上提交。

相关区块生成后，每次转移都会链接到对应的 Ostia 区块和 Canton 更新记录。「活动」列表会显示你的所有转移，包括尚未完成的转移。你可以从「活动」列表中的对应行继续未完成的转移。

## 步骤状态不确定时

* **钱包未响应的发送操作。** 页面会将转移停留在该步骤。只有在 Ostia 显示你的账户没有发起过该调用后，页面才会重新发送。
* **无法再完成结算的存入操作。** 如果 Canton Coin 存入操作无法完成结算，存入的结算截止时间过后约一分钟，卡片上会显示“在 Canton 上取回我的代币”。点击后会撤销分配并归档存入请求，因此代币会留在你的 Canton 账户中。
* **无法结算的金额。** 在请求钱包操作之前，页面会拒绝任何达到或超过某代币 10^17 个整单位的金额。

## 所需时间

以下数据于 2026-11-08 在实时网站上测得，使用的是新钱包；当时由 Bridge 账户在页面中执行 Canton 步骤：

| 转移方式                  | 耗时                        |
| --------------------- | ------------------------- |
| Canton Coin 转至 Ostia  | 56 秒                      |
| 将 CC 转回 Canton        | 46 秒                      |
| 将 0.5 tROME 转到 Canton | 2 分 13 秒（三次钱包弹窗：包装、批准、付款） |
| 从 Canton 转回 0.5 tROME | 58 秒                      |

使用 Canton 钱包时，还需加上你在其中批准每个 Canton 步骤所花的时间。链上操作本身约 10 秒即可最终确认。其余时间都花在钱包操作，以及页面等待区块获得证明上。

## 依赖的基础

这是 DevNet。Rome 运行 Ostia Canton 合约所用的代码，并运行承载 Rome 所运行的每个参与方的节点。孪生代币的管理员，即网关参与方，会为每次孪生代币持有操作签名，因此它无需任何持有方签名，就能销毁、铸造和转移任何参与方持有的孪生代币。你转入 Ostia 的 Canton Coin 由 Rome 参与方上的网关参与方托管，因此 Rome 可以在提款规则之外转移这些代币。Rome 运行 Ostia 的所有服务。

**当前需要信任的对象。** Rome 运行证明器，也是唯一负责确认的参与方。Rome 的参与方托管 Canton Coin，并持有孪生代币管理员权限。代码和 ZisK（alpha 版）均未经审计。本项目仅用于 DevNet。

[孪生代币的信任机制](https://docs.rome.builders/zh/canton-zk-evm/trust-model.md#what-the-twins-trust) 和 [托管](https://docs.rome.builders/zh/canton-zk-evm/trust-model.md#operator-confirmer-and-gateway-authority) 中有详细说明。已停用的 Bridge 账户见 [信任模型](https://docs.rome.builders/zh/canton-zk-evm/trust-model.md#the-bridge-account-made-from-a-wallet-signature).


---

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