> 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/kuai-su-ru-men/what-is-rome.md).

# 什么是 Rome？

Rome 是一个运行在 Solana 内部的 EVM 执行环境。无论你在 Rome 上构建什么，都会同时向所有人开放——EVM 用户、Solana 用户以及其他链上的用户。你只需构建一次，每一类用户都能访问。

## Rome 的工作原理

Rome 将完整的 EVM 字节码解释器嵌入为一个 Solana 链上程序。当你在 Rome 上部署 Solidity 合约时，它驻留在 Solana 上；当它运行时，它在 Solana 的运行时环境中执行，并可直接访问任意 Solana 程序——SPL Token、Jupiter、Kamino、Meteora，或你自己的程序——以原子方式在一笔交易中完成。EVM 与 Solana 共享同一状态，因此 Solana 上的代币及其在 EVM 中的 ERC-20 形式实际上是同一个账户：没有跨链桥，也没有封装代币。

因为这一切都运行在 Solana 上， **任一钱包都能驱动相同的应用。** MetaMask 用户会像往常一样签署一笔 EVM 交易。Phantom 用户则使用他们的 **Solana** 密钥签名——不需要 EVM 密钥对，也不需要单独地址——并可直接使用完全相同的 Solidity 应用。二者都能访问相同的合约和相同的状态，只是使用他们已经拥有的身份。

```mermaid
flowchart LR
    MM["MetaMask（EVM 密钥）"] --> APPS
    PH["Phantom（Solana 密钥）"] --> APPS
    APPS["Rome：你的 Solidity 应用<br/>在 Solana 内的共享状态"] --> PROGS["Solana 程序<br/>Jupiter、Meteora、Pyth"]
```

## 如何使用 Rome

在 Rome 上构建有四种方式。每一种都有指南，并配有可阅读的可运行代码。

### 迁移你的 Solidity

按原样部署你现有的 Solidity 合约。在 Rome 上，它们可以原子地调用 Solana 程序——例如一次兑换、一次价格读取——并在一笔交易中完成；同一个合约也向 EVM 钱包、Solana 钱包，以及来自其他链的用户开放。

**如何构建：** [部署 Solidity](/zh/kai-fa-zhe-zhi-nan/deploy-solidity.md)，然后 [从 EVM 调用 Solana](/zh/kai-fa-zhe-zhi-nan/call-solana-from-evm.md).

**可阅读示例：** Compound v3 和 Aave v3 可在 Rome 上无需改动地运行—— [compound-on-rome-comet](https://github.com/rome-protocol/compound-on-rome-comet), [rome-aave-v3](https://github.com/rome-protocol/rome-aave-v3). [Aerarium](https://github.com/rome-protocol/aerarium) 是一个借贷应用，EVM 与 Solana 用户共享同一个市场。

### 迁移你的 Solana 程序

你的 Solana 程序会继续以原有方式为 Solana 用户服务。在 Rome 上，它也可以从 Solidity 中被调用，因此 EVM 用户——以及其他链上的用户——同样可以使用它，而且无需对程序做任何改动。

**如何构建：** [从 EVM 调用 Solana 程序](/zh/kai-fa-zhe-zhi-nan/call-solana-from-evm.md); [从 Solana 调用 EVM](/zh/kai-fa-zhe-zhi-nan/call-evm-from-solana.md) 涵盖了另一个方向。

**可阅读示例：** [cardo](https://github.com/rome-protocol/cardo) 可从一个 EVM 账户访问 Jupiter、Meteora、Marinade 和 Mango。

### 实现你的想法

从一开始就构建一个同时使用两侧的新项目——一个由 EVM 和 Solana 用户共享的资金池、一个双方都可借贷的市场、一个将 Solana 价格引入 EVM 的预言机。所有受众都能从第一天开始使用它。

**如何构建：** 首先 [选择你的核心](/zh/he-xin-gai-nian/choose-your-core.md)，然后 [从 EVM 调用 Solana](/zh/kai-fa-zhe-zhi-nan/call-solana-from-evm.md) 以及 [DeFi 模式](/zh/shi-yong-chang-jing/defi-protocols.md).

**可阅读示例：** [rome-dex](https://github.com/rome-protocol/rome-dex) 是一个由 EVM 和 Solana 钱包共同交易的单一资金池； [rome-oracle-gateway](https://github.com/rome-protocol/rome-oracle-gateway) 读取 Solana 价格馈送，并通过标准 Chainlink 接口将其提供给 Solidity。

### 从主链出发

你的用户无需迁移。从他们的主链——Arbitrum、Monad，或任何其他链——他们都可以访问 Rome 应用，并在不离开当前环境的情况下接入 Solana。

**如何构建：** [从主链出发：从另一条链访问 Rome](/zh/kai-fa-zhe-zhi-nan/from-home.md).

**可阅读示例：** [appia](https://github.com/rome-protocol/appia) ——用户从自己的主链带入 USDC，并使用 Rome 侧的 DeFi； [rome-bridge-api](https://github.com/rome-protocol/rome-bridge-api) 是桥接编排器。

## 在你自己的链上运行它

准备就绪后，你可以在你自己的 Rome 链上运行上述任何方案，使用你自己的 Gas 代币，并让费用累积到你的应用中。参见 [应用主权](/zh/chan-pin/app-sovereignty.md).

## 前提条件

* 具备 Solidity 经验（Hardhat 或 Foundry），或有一个要迁移的 Solana 程序
* 一个钱包——MetaMask 和/或像 Phantom 这样的 Solana 钱包
* 对 Solana 账户模型有基本了解（参见 [关键概念](/zh/kuai-su-ru-men/key-concepts.md))

## 下一步

* [快速开始](/zh/kuai-su-ru-men/quickstart.md) ——在几分钟内部署你的第一个合约
* [架构](/zh/kuai-su-ru-men/architecture.md) ——EVM 执行如何在 Solana 内部运行
* [Rome 上的应用](/zh/rome-shang-de-ying-yong/apps.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 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/kuai-su-ru-men/what-is-rome.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.
