> 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/zi-yuan/faq.md).

# 常见问题

## 常规

**什么是 Rome Protocol？** Rome 是一个在 Solana 运行时内部原生运行的 EVM 执行环境。Solidity 合约可部署在 Solana 上，并可通过直接 CPI 访问所有 Solana 程序。参见 [什么是 Rome？](/zh/ru-men/what-is-rome.md)

**Rome 是桥吗？** 不是。Rome EVM 作为一等程序运行在 Solana 的运行时中。不同链之间没有消息中继。EVM 状态就是 Solana 状态。

**Rome 是 rollup 吗？** 不是。区块索引器（Hercules）为钱包和区块浏览器生成与以太坊兼容的区块，但 EVM 执行发生在 Solana 程序内部——而不是在单独的 rollup 链上。

## 开发

**我可以使用现有的 Solidity 合约吗？** 可以。标准 Solidity 合约可原样部署到 Rome 上。如果您的合约使用 Chainlink 预言机，Oracle Gateway 提供相同的 `AggregatorV3Interface`.

**我应该使用哪个 Solidity 版本？** 推荐使用 0.8.28（与 Rome Solidity SDK 匹配）。更早的版本也可用。

**我可以使用 Hardhat、Foundry 吗？** 两者都可以。请使用 Rome RPC URL 和链 ID 配置您的网络。参见 [部署 Solidity](/zh/kai-fa-zhe-zhi-nan/deploy-solidity.md).

**我可以使用 MetaMask 吗？** 可以。在 MetaMask 中将 Rome 作为自定义网络添加，并填写相应的 RPC URL 和链 ID。参见 [快速入门](/zh/ru-men/quickstart.md).

**如何从 Solidity 调用 Solana 程序？** 使用 CPI 预编译合约（`0xFF...08`）通过 Rome Solidity SDK。参见 [从 EVM 调用 Solana](/zh/kai-fa-zhe-zhi-nan/call-solana-from-evm.md).

## 性能

**交易最终确认时间是多少？** 亚秒级——与 Solana 出块时间相同（约 400 毫秒）。

**计算预算是多少？** 每笔原子交易约 140 万计算单元。超过此额度的操作将使用迭代模式（拆分为多个 Solana 交易）。参见 [计算预算](/zh/he-xin-gai-nian/compute-budget.md).

## 代币

**Rome 使用哪种 gas 代币？** 每条链自行选择 gas 代币——可以是任何 SPL 代币，价格通过 Meteora 池确定。公共链（Martius、Hadrian）使用 USDC 作为 gas。

**ERC-20 代币在 Rome 上如何运作？** Rome 上的 ERC-20 代币是对 SPL 代币的透明封装。 `balanceOf()` 直接从 Solana 上的 SPL 代币账户读取。参见 [代币互操作](/zh/he-xin-gai-nian/token-interop.md).

**Solana 侧的存款或跨链转账提示“SOL 不足”，但我的钱包里有资金——为什么？** Rome 的 devnet 和 testnet 链在 Solana Devnet 上结算，因此您的 Solana 钱包必须处于匹配的网络模式。在 Phantom 中，打开 Settings → Developer Settings → 启用 Testnet Mode，并将网络设置为 Devnet，然后断开并重新连接两个钱包后重试。如果存款后代币余额没有显示，请手动将该代币导入您的钱包。

## 基础设施

**我需要运行自己的节点吗？** 不需要——连接到公共链的 RPC（参见 [网络](/zh/wang-luo/networks.md)）。运行自己的链意味着需要运维 Proxy 和 Hercules。

**Rome 需要哪些数据库？** PostgreSQL，由 Hercules 用于区块索引，由 Proxy 用于区块查询。

**我可以在本地运行 Rome 吗？** 目前，请基于公共链进行开发—— [快速入门](/zh/ru-men/quickstart.md) 可在几分钟内部署到 Martius（testnet）或 Hadrian（devnet）。独立的本地技术栈已在规划中。


---

# 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 dynamically by asking a question.

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

```
GET https://docs.rome.builders/zh/zi-yuan/faq.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
