> 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/chan-pin/app-sovereignty.md).

# 应用主权

在 Solana 上启动你自己的主权 EVM 链——自定义 chain ID、任意 SPL 代币作为 gas，以及累积到应用金库的 gas 收入。

应用主权使任何 Solana 应用都能启动自己的 EVM 环境，使用自定义链 ID、自定义 Gas 代币，以及流向应用本身而非共享协议的 Gas 收入。

## 概览

Rome 上的每个应用都获得一个主权 EVM 实例：

* **专属链 ID** — 你的应用就是一条独立的链
* **专属 Gas 代币** — 任何 SPL 代币（你的项目代币、USDC、SOL）
* **Gas 收入** — 所有交易费用都计入你的金库
* **完整的 EVM 工具链** — 你的用户连接 MetaMask，你的开发者使用 Hardhat/Foundry
* **共享状态** — EVM 用户和 Solana 用户共享同一应用状态和流动性

## 工作原理

1. **通过 Sovereign Portal 接入** — 申请一条链，并通过 [主权门户](https://sovereign.devnet.romeprotocol.xyz)
2. **Rome 启动该链** — Rome 团队负责配置并运维该链的基础设施
3. **部署合约** — 使用 Hardhat 或 Foundry 进行标准 Solidity 部署
4. **用户连接** — 使用你的链 ID 的 MetaMask，或任意 EVM 钱包

每一条已上线的 Rome 链——包括公开参考链 [**Hadrian**](https://docs.rome.builders/zh/wang-luo/hadrian.md) — 都记录在公开的 [Rome 注册表](https://github.com/rome-protocol/rome-registry) (链 ID、RPC、合约地址)，因此主权链可通过开发者已在使用的同一权威来源被发现。

## Gas 代币定价

自定义 Gas 代币通过 Meteora DAMM 池定价——可配置为 v1 或 v2（也可使用 Pyth/Hermes 作为后备）。Proxy 配置指定一个 `price_manager` 用于读取该池，以在你的 Gas 代币与 SOL 之间换算底层 Solana 交易费用。

```yaml
# 自定义 Gas 代币的 Proxy 配置
price_manager:
  type: "meteora_damm_v1_pool"   # meteora_damm_v1_pool | meteora_damm_v2_pool | hermes_api
  pool_address: "YOUR_METEORA_POOL_ADDRESS"
```

## 用例：预测市场启动 EVM 链

```
Orra（Solana 预测市场）希望吸引 EVM 用户：
  1. Rome 部署 Orra 的主权 EVM，并以 ORRA 代币作为 Gas
  2. EVM 用户连接 MetaMask，跨链转入 USDC，购买预测份额
  3. 底层流程：rUSDC（ERC-20）→ 解包为 SPL → Orra CPI → 购买份额
  4. Orra 从每笔 EVM 交易中赚取以 ORRA 代币计价的 Gas 费用
  5. 单一状态：Solana 用户和 EVM 用户看到相同的市场、相同的流动性
```

## 状态

**已上线** — 与合作伙伴共同运行的活跃产品。

## 下一步

* [架构](https://docs.rome.builders/zh/kuai-su-ru-men/architecture.md) — Rome EVM 的底层工作原理
* [快速开始](https://docs.rome.builders/zh/kuai-su-ru-men/quickstart.md) — 部署你的第一个合约
* [部署 Solidity](https://docs.rome.builders/zh/kai-fa-zhe-zhi-nan/deploy-solidity.md) — Hardhat 和 Foundry 的部署指南


---

# 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/chan-pin/app-sovereignty.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.
