Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions src/content/docs/build/guides/oracles.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Copy link

Copilot AI Dec 30, 2025

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.

Copilot uses AI. Check for mistakes.

## Chainlink

Expand Down Expand Up @@ -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
Copy link

Copilot AI Dec 30, 2025

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 mainnet address should be: 0x0fea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528

Suggested change
0xfea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528
0x0fea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528

Copilot uses AI. Check for mistakes.
Copy link
Author

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"??

```
### Contract Address for Aptos testnet:
Copy link

Copilot AI Dec 30, 2025

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.

Suggested change
### Contract Address for Aptos testnet:
### Contract Address for Aptos Testnet:

Copilot uses AI. Check for mistakes.
```
0x81fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099
Copy link

Copilot AI Dec 30, 2025

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

Suggested change
0x81fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099
0x081fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099

Copilot uses AI. Check for mistakes.
Copy link
Author

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"??

```

For more details, [check out Switchboard’s detailed Aptos documentation.](https://docs.switchboard.xyz/docs-by-chain/data-feeds)