> For the complete documentation index, see [llms.txt](https://doc.cryptostone.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.cryptostone.org/crypto-stone/crypto-stone-wp-cn/xie-yi-jia-gou/34-qu-zhong-xin-hua-wa-kuang-jie-gou.md).

# 34. 去中心化挖矿结构

在 CryptoStone 中，挖矿并不是由服务器代替用户执行。用户将 STONX 质押至自己选择的宝石池，随着时间推移，当 PoM 值达到该矿池的所需阈值后，用户可以直接调用 `claimGem()` 等合约函数来领取 Gem NFT。

1. 用户持有 STONX。
2. 选择希望参与的宝石池。
3. 质押 STONX。
4. 产生 Mining Power。
5. 随时间推移累积 PoM 值。
6. 当 PoM 达到所需阈值时调用 `claimGem()`。
7. 合约验证是否满足挖矿条件。
8. 通过可验证随机值生成属性。
9. 发行 Gem NFT。
10. NFT 转入用户钱包。

在这一过程中，中央服务器不会发行宝石，也不会指定属性。挖矿条件和结果由代码决定。

智能合约本身不会自动执行。但任何人都可以调用合约，合约会根据预先确定的条件验证并执行结果。因此，CryptoStone 的挖矿结构可以在没有中央服务器的情况下运行。

开发者认为，该结构中的重点并不只是“没有服务器”这一事实，而是“即使没有服务器，用户也可以直接调用合约，并按照既定规则获得挖矿结果”。


---

# 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://doc.cryptostone.org/crypto-stone/crypto-stone-wp-cn/xie-yi-jia-gou/34-qu-zhong-xin-hua-wa-kuang-jie-gou.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.
