> 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/wang-luo/rubicon.md).

# Rubicon（主网）

Rome Rubicon — 公共主网链（链 ID 7531）。在 Solana 主网上结算，Gas 使用真实 USDC。

Rubicon 是 Rome 的公开主网链。它是一个 EVM 链，在 Solana 主网上的 Rome 程序内部执行并在该处结算。Gas 以 USDC 支付，而该 USDC 是真实资金。没有水龙头。

Rubicon 位于公开的 [Rome 注册表](https://github.com/rome-protocol/rome-registry) 自 v0.3.0 起。 `create-rome-app` 和 `rome-cli` 仍然固定在 registry v0.2.0，而其中没有 Rubicon 条目，因此它们无法将其作为目标。对于这些工具，请从本页面手动填写这些值。

## 网络详情

| 字段               | 值                                                                                                                          |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------- |
| 链 ID             | `7531`                                                                                                                     |
| RPC 地址           | `https://rubicon.mainnet.romeprotocol.xyz/`                                                                                |
| WebSocket        | `wss://rubicon.mainnet.romeprotocol.xyz/`                                                                                  |
| 浏览器              | [via-rubicon.mainnet.romeprotocol.xyz](https://via-rubicon.mainnet.romeprotocol.xyz/)                                      |
| 合约验证             | `https://verify.mainnet.romeprotocol.xyz` （见 [验证合约](https://docs.rome.builders/zh/kai-fa-zhe-zhi-nan/verify-contracts.md)) |
| 结算于              | Solana 主网                                                                                                                  |
| Rome 程序 ID       | `RomePq9X3iAoTr813HR7uRarafFDUJty6GdiEceYpzX`                                                                              |
| Gas 代币           | USDC，EVM 侧为 18 位小数                                                                                                         |
| Solana USDC 铸币地址 | `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` （6 位小数）                                                                     |

通过手动输入上述值将其添加到钱包中（设置 → 网络 → 添加网络），货币符号为 `USDC`。WebSocket 订阅与 HTTPS RPC 由同一主机提供服务。

## Gas

Gas 使用 USDC。价格按通常方式读取，使用 `eth_gasPrice`。Rubicon 的价格高于 Hadrian，且会波动，因此不要直接复制本页上的数值。作为对比，对 `eth_gasPrice` 在 Rubicon 上的读取返回约 104.6 gwei，而在 Hadrian 上返回约 10.4 gwei，约低十倍。quickstart 合约在未启用优化器的情况下构建，如 `npx hardhat run` 构建后，在 Rubicon 上估算约 1400 万 gas，因此首次部署在该价格下大约花费 1.5 USDC（开启优化器时约 970 万 gas 和 1 USDC）。

使用 `eth_estimateGas` 对每次写操作都要估算，绝不要硬编码 21,000。写操作成本的大部分来自创建 Solana 账户（一个从未使用过的接收方、一个新的代币账户、一个已部署的合约），而估算已经包含了这些。对于对 Solana 程序的调用，请像 SDK 的 1.3 倍缓冲那样再加上余量；如果估算本身回退，请自行设置 gas 上限。参见 [JSON-RPC 支持](https://docs.rome.builders/zh/can-kao/json-rpc.md) 实测数值。

## 为钱包充值

通过以下方式将 USDC 转入： [主网上的 Rome Bridge](https://bridge-api.mainnet.romeprotocol.xyz/)。撰写本文时，其针对 Rubicon 的路线列表包括通过 CCTP 与 Ethereum、Base、Arbitrum、Polygon、Avalanche、Monad 和 OP 之间的 USDC，以及来自 Solana 钱包的 SOL 和 USDC。没有 ETH 路线。实时列表见 [`/v1/routes`](https://bridge-api.mainnet.romeprotocol.xyz/v1/routes)。默认情况下，通过桥接到达的 USDC 会作为 gas 到账。桥接页面也可以改为将其作为 wUSDC 代币交付。有关桥接的详情见 [Rome Bridge](https://docs.rome.builders/zh/rome-shang-de-ying-yong/bridge-api.md) 页面，而 [水龙头](https://docs.rome.builders/zh/zi-yuan/faucets.md) 说明主网上适用的内容。

## 合约与包装器

Rubicon 的包装器地址列在 [按网络划分的包装器地址](https://docs.rome.builders/pages/4496064f4424b81f9cfa6eabe3c0a43e8be09af2#id-4.-per-network-wrapper-addresses) 以及 [合约地址](https://docs.rome.builders/zh/can-kao/contract-addresses.md)。这里不重复列出，以便只有一个地方需要维护最新信息。

## 从 Solana 钱包调用 Rubicon

Solana 通道（即 Solana 钱包调用你的 EVM 合约）在主网上需要两样东西。

* **一个 Solana 主网 RPC。** SDK 会将已签名的 Solana 交易发送到你提供的 Solana RPC，而不是发送到 Rome 代理。请使用你已开户注册的服务商提供的 Solana 主网 RPC。
* **一个能够签名 Solana v1 交易的钱包。** 每一次 Solana 通道调用都是 v1 交易。在基于它构建之前，请确认你的钱包能够为其签名。在 Hadrian 上，Solflare 可以签名，而 Phantom 目前还不行。此处未说明某个特定钱包在 Rubicon 上是否支持签名，因此请先自行测试。

registry 从 v0.3.0 起包含 Rubicon，因此你可以读取 SDK 的 `依赖项` 从中获取这些值，或者使用上表中的数值手动填写。逐字段映射见于 [向 Solana 用户开放你的合约](https://docs.rome.builders/pages/4496064f4424b81f9cfa6eabe3c0a43e8be09af2#id-3.-let-a-solana-wallet-call-it).

## 在部署之前

* 在以下环境开发和测试： [Hadrian](https://docs.rome.builders/zh/wang-luo/hadrian.md)。Rubicon 运行相同的 EVM，因此相同的构建产物可以直接部署，只需切换链 ID 和包装器地址。
* Rubicon 上的每笔交易都会花费真实的 USDC。在对外宣布任何内容之前，请先用小额资金完整跑通一次端到端流程。
* 移动包装器代币的用户需要获得一次性的包装器授权，详见 [代币互操作](https://docs.rome.builders/zh/he-xin-gai-nian/token-interop.md#one-time-grant-per-wallet)，在 Rubicon 上与在其他所有链上一样。


---

# 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/wang-luo/rubicon.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.
