> 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 接入** — 通过该入口申请链，并配置你的链 ID 和 Gas 代币（任意 SPL 铸币） [Sovereign Portal](https://sovereign.devnet.romeprotocol.xyz)
2. **Rome 启动该链** — Rome 团队负责配置并运行该链的基础设施
3. **部署合约** — 使用 Hardhat 或 Foundry 进行标准 Solidity 部署
4. **用户连接** — 使用你的链 ID 的 MetaMask，或任意 EVM 钱包

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

## Gas 代币定价

自定义 Gas 代币通过 Meteora DAMM 流动性池进行定价——可配置为 v1 或 v2（也提供 Pyth/Hermes 兜底方案）。代理配置会指定一个 `price_manager` ，用于读取流动性池，在你的 Gas 代币与 SOL 之间进行转换，以支付底层 Solana 交易费用。

```yaml
# 自定义 Gas 代币的代理配置
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 部署以 ORRA 代币作为 Gas 的主权 EVM
  2. EVM 用户使用 MetaMask 连接，跨链转入 USDC，购买预测份额
  3. 底层流程：rUSDC（ERC-20）→ 解包为 SPL → Orra CPI → 购买份额
  4. Orra 从每笔 EVM 交易中以 ORRA 代币赚取 Gas 费用
  5. 单一状态：Solana 用户和 EVM 用户看到相同的市场、相同的流动性
```

## 状态

**已上线** — 与合作伙伴合作中的活跃产品。

## 接下来

* [架构](/zh/kuai-su-kai-shi/architecture.md) — Rome EVM 在底层的运行方式
* [快速开始](/zh/kuai-su-kai-shi/quickstart.md) — 部署你的第一个合约
* [部署 Solidity](/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.
