> 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 将 EVM 和 Solana 变成一个统一市场。Rome 在 Solana 内部运行 EVM 链，因此无论您构建什么，都可面向 EVM 钱包和 Solana 钱包开放。四种构建方式。

Rome 让 EVM 和 Solana 形成一个统一市场。

Rome 在 Solana 内部运行 EVM 链。你在 Rome 上构建的任何内容都会同时向所有人开放：EVM 用户、Solana 用户以及其他链上的用户。你只需构建一次，他们每个人都能访问。Solana 钱包会获得一个由其自身密钥派生的 EVM 地址，因此 Rome 上的任何 Solidity 应用都可通过一次部署同时服务 EVM 钱包和 Solana 钱包。Solidity 合约可在一笔原子交易中调用任意 Solana 程序，因此 EVM 用户可以访问 Kamino 和 Solana DEX。通过 AggLayer 集成，Solana 就像任何一条 EVM 链一样，资产可在双方之间流动。任何团队都可以使用自己的代币作为 gas 发起自己的 Rome 链。参见 [一个市场](https://docs.rome.builders/zh/kuai-su-ru-men/one-market.md) 以了解全貌。

## Rome 的工作原理

Rome 将完整的 EVM 字节码解释器嵌入为 Solana 链上程序。当你在 Rome 上部署一个 Solidity 合约时，它就存在于 Solana 上；当它运行时，它在 Solana 的运行时中执行，并可直接访问任意 Solana 程序——SPL Token、Jupiter、Kamino、Meteora，或你自己的程序——以原子方式在一笔交易中完成。EVM 与 Solana 共享同一状态：一个 SPL 代币及其 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](https://docs.rome.builders/zh/kai-fa-zhe-zhi-nan/deploy-solidity.md)，然后 [从 EVM 调用 Solana](https://docs.rome.builders/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 程序](https://docs.rome.builders/zh/kai-fa-zhe-zhi-nan/call-solana-from-evm.md); [从 Solana 调用 EVM](https://docs.rome.builders/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 的预言机。所有用户群体从第一天起都能使用。

**如何构建：** 首先 [选择你的核心](https://docs.rome.builders/zh/he-xin-gai-nian/choose-your-core.md)，然后 [从 EVM 调用 Solana](https://docs.rome.builders/zh/kai-fa-zhe-zhi-nan/call-solana-from-evm.md) 以及 [DeFi 模式](https://docs.rome.builders/zh/ying-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](https://docs.rome.builders/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 代币，费用也会归集到你的应用。参见 [应用主权](https://docs.rome.builders/zh/chan-pin/app-sovereignty.md).

## 前提条件

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

## 下一步

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