-
Notifications
You must be signed in to change notification settings - Fork 26
Update oracles.mdx to add Switchboard #325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,8 +8,8 @@ sidebar: | |||||
| import { Aside } from '@astrojs/starlight/components'; | ||||||
|
|
||||||
| This reference guide presents various Oracles that you can use while building on Aptos. Oracles supply off-chain data | ||||||
| to the blockchain, enabling smart contracts to access a diverse range of information. Currently, there are two oracles | ||||||
| documented here in this guide: Chainlink and Pyth Network. | ||||||
| to the blockchain, enabling smart contracts to access a diverse range of information. Currently, there are three oracles | ||||||
| documented here in this guide: Chainlink, Pyth Network, and [Switchboard](https://github.com/aptos-labs/aptos-docs/blob/main/src/content/docs/build/guides/oracles.mdx#switchboard). | ||||||
|
|
||||||
| ## Chainlink | ||||||
|
|
||||||
|
|
@@ -173,3 +173,29 @@ The [Aptos API reference](https://docs.pyth.network/price-feeds/api-reference/ap | |||||
|
|
||||||
| - [Minimal on-chain contract](https://github.com/pyth-network/pyth-examples/blob/main/price_feeds/aptos/fetch_btc_price/sources/example.move), which updates and returns the BTC/USD price from Pyth price feeds. | ||||||
| - [Mint NFT](https://github.com/pyth-network/pyth-examples/tree/main/price_feeds/aptos/mint_nft), a minting application that uses Pyth price feeds to mint an NFT. | ||||||
|
|
||||||
| ## Switchboard | ||||||
|
|
||||||
| [Switchboard](https://switchboard.xyz) is the fastest, most customizable, and *only* permissionless oracle protocol. The decentralized Switchboard oracle network enables developers to bring any off-chain or cross-chain data onto Aptos through verifiable, ultra-low-latency feeds. | ||||||
| With its flexible design and high-throughput architecture, Switchboard is a perfect match for Aptos’ high-speed environment and its focus on accessibility and efficiency. | ||||||
|
|
||||||
| ### Switchboard Features | ||||||
|
|
||||||
| - Fully permissionless feed creation via the [Feed Builder](https://explorer.switchboardlabs.xyz/feed-builder): deploy custom oracles in minutes | ||||||
| - [Aggregator](https://docs.switchboard.xyz/product-documentation/aggregator): access multiple oracle sources (like the others on this page) in a single transaction. | ||||||
| - [Data Feed Variables](https://docs.switchboard.xyz/custom-feeds/advanced-feed-configuration/data-feed-variable-overrides): bring API-gated or confidential data on-chain without exposing API keys | ||||||
| - Customizable feeds: adjust feed parameters (confidence intervals, deviation thresholds, and more) to your dapp’s needs | ||||||
| - [Decentralized oracle network](https://docs.switchboard.xyz/how-it-works/switchboard-protocol/re-staking) secured by globally distributed validator set. | ||||||
| - Supports any data type: prices, prediction markets, sports, weather, RWAs, etc | ||||||
| - x402 compatibility: Switchboard is the only x402-compatible oracle. Build more efficient dapps with pay-as-you-go data from any source. | ||||||
|
|
||||||
| ### Contract Address for Aptos Mainnet: | ||||||
| ``` | ||||||
| 0xfea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528 | ||||||
|
||||||
| 0xfea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528 | |
| 0x0fea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's adding a 0 after the "0x"??
Copilot
AI
Dec 30, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The capitalization is inconsistent. Since this follows "Contract Address for Aptos Mainnet:" on line 193, it should use "Mainnet" with a capital M to match. Alternatively, both should use lowercase "mainnet" and "testnet" for consistency.
| ### Contract Address for Aptos testnet: | |
| ### Contract Address for Aptos Testnet: |
Copilot
AI
Dec 30, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The contract address appears to be missing a leading "0x" prefix. Aptos addresses should start with "0x" for consistency and clarity. The testnet address should be: 0x081fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099
| 0x81fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099 | |
| 0x081fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's adding a 0 after the "0x"??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sentence says "there are two oracles" but then lists three (Chainlink, Pyth Network, and Switchboard). Update the count to "three oracles" to match the list. Additionally, the link to Switchboard should be a simple anchor reference like "#switchboard" rather than the full GitHub path, consistent with standard documentation practices.