Skip to content
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

(feat) - Update Pyth Oracle #798

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
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
35 changes: 30 additions & 5 deletions apps/base-docs/docs/tools/oracles.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,39 @@ See [this guide](https://docs.ora.io/doc/oao-onchain-ai-oracle/develop-guide/tut

## Pyth

[Pyth](http://pyth.network/) offers 250+ [price feeds](https://pyth.network/price-feeds) for Base.
The [Pyth Network](https://pyth.network/) is one of the largest first-party Oracle network, delivering real-time data across [a vast number of chains](https://docs.pyth.network/price-feeds/contract-addresses). Pyth introduces an innovative low-latency [pull oracle design](https://docs.pyth.network/documentation/pythnet-price-feeds/on-demand), where users can pull price updates onchain when needed, enabling everyone in the onchain environment to access that data point most efficiently. Pyth network updates the prices every **400ms**, making Pyth one of the fastest onchain oracles.

See [this guide](https://docs.pyth.network/documentation/pythnet-price-feeds/evm) to learn how to use the Pyth feeds.
#### Pyth Price Feeds Features:

#### Supported Networks
- 400ms latency
- Efficient and cost-effective Oracle
- [First-party](https://pyth.network/publishers) data sourced directly from financial institutions
- [Price feeds ranging from Crypto, Stock, FX, Metals](https://pyth.network/developers/price-feed-ids)
- [Available on all major chains](https://docs.pyth.network/price-feeds/contract-addresses)

- Base Mainnet
- Base Sepolia (Testnet)
#### Supported Networks for Base (Pyth Price Feeds):
- Base Mainnet: [`0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a`](https://basescan.org/address/0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a)
- Base Sepolia: [`0xA2aa501b19aff244D90cc15a4Cf739D2725B5729`](https://base-sepolia.blockscout.com/address/0xA2aa501b19aff244D90cc15a4Cf739D2725B5729)


### Pyth Entropy
Pyth Entropy allows developers to quickly and easily generate secure **random numbers** onchain.

Check [how to generate random numbers in EVM contracts]((https://docs.pyth.network/entropy/generate-random-numbers/evm)) for a detailed walkthrough.

#### Supported Networks for Base (Pyth Entropy):
- Base Mainnet: [`0x6E7D74FA7d5c90FEF9F0512987605a6d546181Bb`](https://basescan.org/address/0x6E7D74FA7d5c90FEF9F0512987605a6d546181Bb)
- Base Sepolia: [`0x41c9e39574F40Ad34c79f1C99B66A45eFB830d4c`](https://base-sepolia.blockscout.com/address/0x41c9e39574F40Ad34c79f1C99B66A45eFB830d4c)


Check out the following links to get started with Pyth.

- [Pyth Price Feed EVM Integration Guide](https://docs.pyth.network/price-feeds/use-real-time-data/evm)
- [Pyth Docs](https://docs.pyth.network/home)
- [Pyth Price Feed API Reference](https://api-reference.pyth.network/price-feeds/evm/getPrice)
- [Pyth Examples](https://github.com/pyth-network/pyth-examples)
- [Website](https://pyth.network/)
- [Twitter](https://x.com/PythNetwork)

---

Expand Down