Skip to content

Commit

Permalink
(feat) - Update Pyth Oracle (#798)
Browse files Browse the repository at this point in the history
* (feat) - Update Pyth Oracle

* edits

* requested changes

* requested changes

* requested changes

* requested changes

* fix

---------

Co-authored-by: wbnns <[email protected]>
Co-authored-by: Brendan from DeFi <[email protected]>
  • Loading branch information
3 people authored Oct 18, 2024
1 parent 980d6b4 commit 8e65ecc
Showing 1 changed file with 30 additions and 5 deletions.
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 @@ -126,14 +126,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

0 comments on commit 8e65ecc

Please sign in to comment.