> ## Documentation Index
> Fetch the complete documentation index at: https://docs.monad.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# 预言机

预言机让链下数据可在链上访问。

## 定义

| 术语           | 描述                    |
| ------------ | --------------------- |
| 推送式预言机       | 提供商定期将价格数据推送到链上的预言机合约 |
| 拉取式(按需)预言机   | 用户在调用智能合约时触发价格数据更新    |
| 自定义预言机       | 自定义计算器                |
| VRF(可验证随机函数) | 在链上提供随机数              |

## 提供商概览

<Tabs>
  <Tab title="主网">
    <div class="mintlify-table-wrapper">
      <table class="mintlify-table">
        <thead>
          <tr>
            <th>提供商</th>
            <th>状态</th>
            <th>文档</th>
            <th>合约地址</th>
            <th>实时数据</th>
            <th>支持说明</th>
          </tr>
        </thead>

        <tbody>
          <tr>
            <td>[Chainlink](https://chain.link/)</td>
            <td>✅</td>
            <td>[文档](https://docs.chain.link/)</td>
            <td>参见 [合约地址](https://github.com/monad-crypto/protocols/blob/main/mainnet/chainlink.jsonc)</td>
            <td>[实时数据](https://data.chain.link/streams)</td>

            <td>
              * 推送式预言机([Price Feeds](https://docs.chain.link/data-feeds/price-feeds))
              * 拉取式预言机([Data Streams](https://docs.chain.link/data-streams))
            </td>
          </tr>

          <tr>
            <td>[Chronicle](https://chroniclelabs.org/)</td>
            <td>✅</td>
            <td>[文档](https://docs.chroniclelabs.org/)</td>
            <td>参见 [合约地址](https://github.com/monad-crypto/protocols/blob/main/mainnet/chronicle.jsonc)</td>

            <td />

            <td>推送式预言机;自定义预言机</td>
          </tr>

          <tr>
            <td>[Pyth](https://www.pyth.network/)</td>
            <td>✅</td>
            <td>[文档](https://docs.pyth.network/)</td>
            <td>参见 [合约地址](https://github.com/monad-crypto/protocols/blob/main/mainnet/pyth.jsonc)</td>
            <td>[实时数据](https://www.pyth.network/price-feeds)</td>
            <td>[拉取式预言机](https://docs.pyth.network/price-feeds/pull-updates);<br />
            [VRF](https://docs.pyth.network/entropy)</td>
          </tr>

          <tr>
            <td>[Redstone](https://www.redstone.finance/)</td>
            <td>✅</td>
            <td>[文档](https://docs.redstone.finance/)</td>
            <td>参见 [合约地址](https://github.com/monad-crypto/protocols/blob/main/mainnet/redstone.jsonc)</td>
            <td>[实时数据](https://app.redstone.finance/app/tokens/)</td>
            <td>[推送式预言机](https://app.redstone.finance/app/feeds/?networks=10143);<br />
            [拉取式预言机](https://app.redstone.finance/app/pull-model/redstone-primary-prod)</td>
          </tr>

          <tr>
            <td>[Stork](https://stork.network/)</td>
            <td>✅</td>
            <td>[文档](https://docs.stork.network/)</td>

            <td>
              * 参见 [合约地址](https://github.com/monad-crypto/protocols/blob/main/mainnet/stork.jsonc)<br />
              * [Addresses](https://docs.stork.network/resources/contract-addresses/evm);[APIs](https://docs.stork.network/api-reference/contract-apis/evm);[Asset ID Registry](https://docs.stork.network/resources/asset-id-registry)
            </td>

            <td>[实时数据](https://data.stork.network)</td>
            <td>[推送式预言机](https://docs.stork.network/resources/stork-pushed-assets);<br />[拉取式预言机](https://docs.stork.network/introduction/core-concepts)</td>
          </tr>

          <tr>
            <td>[Supra](https://supra.com/)</td>
            <td>✅</td>
            <td>[文档](https://docs.supra.com/)</td>
            <td>参见 [合约地址](https://github.com/monad-crypto/protocols/blob/main/mainnet/supra_oracles.jsonc)</td>
            <td>[实时数据](https://supra.com/data)</td>
            <td>[推送式预言机](https://docs.supra.com/oracles/data-feeds/push-oracle);<br />[拉取式预言机](https://docs.supra.com/oracles/data-feeds/pull-oracle);<br />[dVRF](https://docs.supra.com/oracles/dvrf)</td>
          </tr>
        </tbody>
      </table>
    </div>

    *✅ = 已支持,⌛️ = 进行中,❓ = 未知,❌ = 不支持*
  </Tab>

  <Tab title="测试网">
    <div class="mintlify-table-wrapper">
      <table class="mintlify-table">
        <thead>
          <tr>
            <th>提供商</th>
            <th>状态</th>
            <th>文档</th>
            <th>合约地址</th>
            <th>实时数据</th>
            <th>支持说明</th>
          </tr>
        </thead>

        <tbody>
          <tr>
            <td>[Chainlink](https://chain.link/)</td>
            <td>✅</td>
            <td>[文档](https://docs.chain.link/)</td>

            <td>
              Price Feeds \[推送式预言机]:<br />

              * [general reference](https://docs.chain.link/data-feeds/price-feeds/addresses?page=1\&testnetPage=1\&network=monad)
            </td>

            <td>[实时数据](https://data.chain.link/streams)</td>

            <td>
              * 推送式预言机([Price Feeds](https://docs.chain.link/data-feeds/price-feeds))
              * 拉取式预言机([Data Streams](https://docs.chain.link/data-streams))
            </td>
          </tr>

          <tr>
            <td>[Chronicle](https://chroniclelabs.org/)</td>
            <td>✅</td>
            <td>[文档](https://docs.chroniclelabs.org/)</td>
            <td>[地址参考](https://docs.chroniclelabs.org/Developers/testnet)</td>
            <td>[Dashboard](https://chroniclelabs.org/dashboard)</td>
            <td>推送式预言机;自定义预言机</td>
          </tr>

          <tr>
            <td>[Gelato VRF](https://github.com/gelatodigital/how-tos-9-10-vrf-jump-start)</td>
            <td>✅</td>
            <td>[示例](https://github.com/gelatodigital/how-tos-9-10-vrf-jump-start)</td>

            <td />

            <td />

            <td>VRF</td>
          </tr>

          <tr>
            <td>[Pyth](https://www.pyth.network/)</td>
            <td>✅</td>
            <td>[文档](https://docs.pyth.network/)</td>

            <td>
              * Price feeds(包括 MON/USD):[`0x2880aB155794e7179c9eE2e38200202908C17B43`](https://testnet.monadvision.com/address/0x2880aB155794e7179c9eE2e38200202908C17B43)<br /><br />
              * Entropy:[`0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320`](https://testnet.monadvision.com/address/0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320)
            </td>

            <td>[实时数据](https://www.pyth.network/price-feeds)</td>
            <td>[拉取式预言机](https://docs.pyth.network/price-feeds/pull-updates);<br />
            [VRF](https://docs.pyth.network/entropy)</td>
          </tr>

          <tr>
            <td>[Redstone](https://www.redstone.finance/)</td>
            <td>✅</td>
            <td>[文档](https://docs.redstone.finance/)</td>

            <td>
              * 推送式预言机 [地址](https://app.redstone.finance/app/feeds/?networks=10143)<br />
              * 所有更新条件:0.5% 偏差与 6h 心跳
            </td>

            <td>[实时数据](https://app.redstone.finance/app/tokens/)</td>
            <td>[推送式预言机](https://app.redstone.finance/app/feeds/?networks=10143);<br />
            [拉取式预言机](https://app.redstone.finance/app/pull-model/redstone-primary-prod)</td>
          </tr>

          <tr>
            <td>[Stork](https://stork.network/)</td>
            <td>✅</td>
            <td>[文档](https://docs.stork.network/)</td>

            <td>
              * 拉取式预言机(包括 MON/USD):[`0xacC0a0cF13571d30B4b8637996F5D6D774d4fd62`](https://testnet.monadvision.com/address/0xacC0a0cF13571d30B4b8637996F5D6D774d4fd62)<br />
              * [Addresses](https://docs.stork.network/resources/contract-addresses/evm);[APIs](https://docs.stork.network/api-reference/contract-apis/evm);[Asset ID Registry](https://docs.stork.network/resources/asset-id-registry)
            </td>

            <td>[实时数据](https://data.stork.network)</td>
            <td>[拉取式预言机](https://docs.stork.network/introduction/core-concepts)</td>
          </tr>

          <tr>
            <td>[Supra](https://supra.com/)</td>
            <td>✅</td>
            <td>[文档](https://docs.supra.com/)</td>

            <td>
              * Storage:[`0xf0e852BC3F940447862D6b67e5B9807E64B433F6`](https://testnet.monadvision.com/address/0xf0e852BC3F940447862D6b67e5B9807E64B433F6)
              * Pull:[`0xF8522B7fcE37439b98A2be282d413A44269028bE`](https://testnet.monadvision.com/address/0xF8522B7fcE37439b98A2be282d413A44269028bE)
              * Router:[`0x5CbC3Dfa33223884E7752a833Fa6aD28Ee015FC4`](https://testnet.monadvision.com/address/0x5CbC3Dfa33223884E7752a833Fa6aD28Ee015FC4)
              * Deposit:[`0x95bfe6e94D5ff9e9d087647bc589acC9E3D31619`](https://testnet.monadvision.com/address/0x95bfe6e94D5ff9e9d087647bc589acC9E3D31619)
            </td>

            <td>[实时数据](https://supra.com/data)</td>
            <td>[推送式预言机](https://docs.supra.com/oracles/data-feeds/push-oracle);<br />[拉取式预言机](https://docs.supra.com/oracles/data-feeds/pull-oracle);<br />[dVRF](https://docs.supra.com/oracles/dvrf)</td>
          </tr>
        </tbody>
      </table>
    </div>

    *✅ = 已支持,⌛️ = 进行中,❓ = 未知,❌ = 不支持*
  </Tab>
</Tabs>

## 提供商详情

### Chainlink

#### Chainlink Data Streams

[Chainlink Data Streams](https://docs.chain.link/data-streams) 在链下提供低延迟的市场数据,可在链上验证。这种方式为去中心化应用(dApp)提供按需访问高频市场数据的能力,并由去中心化、容错和透明的基础设施提供支持。

传统的推送式预言机在设定的时间间隔或达到某些价格阈值时更新链上数据。相比之下,Chainlink Data Streams 使用拉取式设计,通过链上验证保持信任最小化。

要开始使用,请查看 [文档](https://docs.chain.link/data-streams)。

#### Chainlink Price Feeds

[Chainlink Price Feeds](https://docs.chain.link/data-feeds) 是将您的智能合约连接到资产价格等真实世界数据的最快方式。

Data Feeds 聚合多个数据源,并使用 [去中心化数据模型](https://docs.chain.link/architecture-overview/architecture-decentralized-model?parent=dataFeeds) 和 [链下报告](https://docs.chain.link/architecture-overview/off-chain-reporting?parent=dataFeeds) 相结合的方式将它们发布到链上。

要开始使用,请查看 [文档](https://docs.chain.link/data-feeds)。

### Chronicle

Chronicle 的去中心化预言机网络最初是在 MakerDAO 内部为 DAI 的开发而构建的,现在向 Monad 上的开发者开放。

* **Data Feeds**:开发者可以从 90+ 数据源中选择,包括加密资产、收益率和 RWA。Chronicle 的数据通过定制构建的数据模型获取,仅使用一级来源。
* **透明度与完整性**:Chronicle 的预言机网络完全透明,可通过 [Chronicle dashboard](https://chroniclelabs.org/dashboard) 验证。用户可以使用"verify"功能对每次预言机更新的完整性进行加密质询。数据由 [验证者社区](https://chroniclelabs.org/validators) 独立获取,包括 Gitcoin、Etherscan、Infura、DeFi Saver 和 MakerDAO。
* **gas 效率**:Chronicle 率先采用基于 Schnorr 的预言机架构,其预言机每次更新使用的 gas 比其他预言机提供商少 60-80%。每次更新的最低成本允许推送式预言机更频繁地更新,从而实现细粒度的数据报告。
* 每个预言机实现都根据您的需求定制。实施我们现有的数据模型之一,或通过 [Discord](https://discord.gg/CjgvJ9EspJ) 联系 Chronicle 开发自定义预言机数据源。

开发者可以通过 [文档](https://docs.chroniclelabs.org/) 深入了解 Chronicle Protocol 的架构和独特设计选择。

### Pyth

[Pyth Network](https://www.pyth.network/) 是最大的一手预言机网络之一,可跨多条链交付实时数据。Pyth 引入了低延迟 [拉取式预言机](https://docs.pyth.network/price-feeds/pull-updates) 设计。数据提供商每 400 毫秒将价格更新推送到 [Pythnet](https://docs.pyth.network/price-feeds/how-pyth-works/pythnet)。用户在需要时将聚合价格从 Pythnet 拉取到 Monad,让链上环境中的每个人都能以最高效的方式访问该数据点。

Pyth Price Feeds 功能:

* 400 毫秒延迟
* 直接来自金融机构的 [一手](https://www.pyth.network/publishers) 数据
* 涵盖加密货币、股票、外汇和金属的 [Price feeds](https://www.pyth.network/developers/price-feed-ids)
* 在 [许多](https://docs.pyth.network/price-feeds/contract-addresses) 主要链上可用

Monad Testnet 合约地址:

* Price feeds:[`0x2880aB155794e7179c9eE2e38200202908C17B43`](https://testnet.monadvision.com/address/0x2880aB155794e7179c9eE2e38200202908C17B43)
* Entropy:[`0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320`](https://testnet.monadvision.com/address/0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320)

<Note>
  `MON/USD` 价格源已从 Pyth 的 beta 计划毕业,在测试网和主网上均由主要价格源合约提供,feed id 为 [`0x31491744e2dbf6df7fcf4ac0820d18a609b49076d45066d3568424e62f686cd1`](https://www.pyth.network/developers/price-feed-ids)。

  要在链下获取 MON/USD 价格源,请参阅 [Hermes 指南](https://docs.pyth.network/price-feeds/core/how-pyth-works/hermes) 以了解当前的 API 端点和身份验证要求。

  如果您之前为 MON/USD 集成了 beta 价格源合约(`0xad2B52D2af1a9bD5c561894Cdd84f7505e1CD0B5`),请迁移到主合约:beta 合约不再为此源提供服务。
</Note>

### Redstone

[RedStone](https://www.redstone.finance/) 是发展最快的模块化预言机,专注于借贷市场的收益型抵押品,例如 LST、LRT 和 BTCFi。

要开始使用,请访问 [Redstone 文档](https://docs.redstone.finance/docs/introduction)。

### Stork

[Stork](https://stork.network/) 是一种预言机协议,可在数据提供商与链上、链下应用之间实现超低延迟的连接。Stork 最常见的用例是拉取和消费实时价格源形式的市场数据,用于 DeFi。

Stork 被实现为 [拉取式预言机](https://docs.stork.network/introduction/core-concepts#docs-internal-guid-4b312e7b-7fff-1147-c04b-bbaadec1a82a)。Stork 持续从可信发布者聚合、验证和审计数据,并以亚秒级延迟和频率提供聚合数据。然后可以按需将这些数据拉入任何链上或链下应用。

要了解 Stork 的工作原理,请访问 [核心概念](https://docs.stork.network/introduction/core-concepts) 和 [工作原理](https://docs.stork.network/introduction/how-it-works)。

### Supra

[Supra](https://supra.com) 提供 VRF 和去中心化预言机价格源(基于推送和拉取),可用于链上和链下用例,例如现货和永续 DEX、借贷协议和支付协议。

要开始使用,请访问 [Supra 文档](https://docs.supra.com)
