# 什么是 Rome？

Rome Protocol 是一个 EVM 执行环境，原生运行在 Solana 运行时内部。Solidity 智能合约通过跨程序调用（CPI）在 Solana 上部署和执行，可原子化访问所有 Solana 程序与流动性——无需桥接、无需消息传递、无需同步延迟。

## 工作原理

Rome 将完整的 EVM 字节码解释器嵌入为 Solana 链上程序。当你在 Rome 上部署 Solidity 合约时，它就驻留在 Solana 上。当该合约执行时，它在 Solana 的运行时中运行，并可通过直接 CPI 访问任意 Solana 程序——SPL Token、Jupiter、Kamino、Drift、Meteora，或你自己的 Anchor 程序。

```
┌──────────────────────────────────────────────────────────┐
│ Solana 运行时                                           │
│                                                          │
│   ┌──────────────┐    CPI    ┌──────────────────────┐    │
│   │  Rome EVM    │◄────────►│  任意 Solana 程序     │    │
│   │  程序        │          │  （Jupiter、Kamino、  │    │
│   │              │          │   Drift、SPL Token、  │    │
│   │  ┌────────┐  │          │   你的程序...）       │    │
│   │  │Solidity│  │          └──────────────────────┘    │
│   │  │合约    │  │                                      │
│   │  └────────┘  │                                      │
│   └──────────────┘                                      │
└──────────────────────────────────────────────────────────┘
         ▲
         │ 标准 Ethereum JSON-RPC
         │
   ┌─────┴─────┐
   │  MetaMask  │  Hardhat  │  Foundry  │  ethers.js
   └───────────────────────────────────────────────┘
```

## 关键特性

**单一状态** — EVM 合约与 Solana 程序共享同一状态。Solana 上的 USDC 余额及其在 Rome EVM 中的 ERC-20 表示，本质上是同一个 SPL 代币账户。无桥接延迟，无流动性碎片化。

**标准 EVM 工具链** — 使用 Hardhat 或 Foundry 部署。通过 MetaMask 交互。编写 Solidity。Rome 兼容 EVM——你现有的合约、工具和工作流程都无需改动即可使用。

**跨程序调用** — Solidity 合约可通过 CPI 预编译直接调用任意 Solana 程序。在 Jupiter 上交换、向 Kamino 存款、读取 Pyth 价格——全部都可在 Solidity 中完成，并且都是原子化的。

**Solana 性能** — 交易可在约 400 毫秒内完成结算，并享有 Solana 的吞吐量。没有独立共识，没有 rollup 延迟。

**应用主权** — 每个应用都拥有自己的 EVM 环境，具备自定义 chain ID、自有 gas 代币（任意 SPL 代币），以及归属于该应用的 gas 费用——而非共享协议。

## Rome 不是

Rome 是 **不是桥接器**。不存在两个独立链之间的消息中继。Rome EVM 作为一等公民程序运行在 Solana 的运行时内部。

Rome 是 **不是 rollup** 的传统形式。没有独立的共识机制，也没有数据可用性层。EVM 状态就是 Solana 状态。

## 基于 Rome 构建的产品

| 产品                                                   | 功能                                                              | 状态     |
| ---------------------------------------------------- | --------------------------------------------------------------- | ------ |
| [Meta-Hook Router](/zh/chan-pin/meta-hook-router.md) | Token-2022 Transfer Hook 多路复用器——在每次 SPL 转账时执行合规、版税、分析           | 进行中    |
| [Rome SDK](/zh/chan-pin/rome-sdk.md)                 | Solana 程序的类型化 Solidity 接口——SPL Token、System Program、Meteora、预言机 | 部分构建中  |
| [应用主权](/zh/chan-pin/app-sovereignty.md)              | 在 Solana 上启动你自己的 EVM 链，并使用自定义 gas 代币                            | 已上线    |
| [预言机网关](/zh/chan-pin/oracle-gateway.md)              | 将 Pyth 和 Switchboard 作为 Chainlink AggregatorV3Interface         | V1 已发布 |
| [DeFi Composer](/zh/chan-pin/defi-composer.md)       | 通过 CPI 在 Solidity 中实现类似 Yearn 的多协议金库                            | 已设计    |

## 前置条件

在 Rome 上构建，你需要：

* Solidity 开发经验（Hardhat 或 Foundry）
* 一个钱包（MetaMask 开箱即用）
* 对 Solana 账户模型的基础理解（见 [关键概念](/zh/ru-men/key-concepts.md))

## 下一步

* [为什么选择 Rome？](/zh/ru-men/why-rome.md) — Rome 与其他方案的对比
* [架构](/zh/ru-men/architecture.md) — 深入了解 EVM 执行如何在 Solana 上运行
* [快速开始](/zh/ru-men/quickstart.md) — 在 5 分钟内部署你的第一个 Solidity 合约


---

# Agent Instructions: 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:

```
GET https://docs.rome.builders/zh/ru-men/what-is-rome.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
