Pyth on Aptos
Consume Pyth Network prices in applications on Aptos
Aptos contracts can update and fetch the Pyth prices using the Pyth Aptos Contract, which has been deployed on Mainnet. The documented source code can be found here.
The mechanism by which price feeds are updated on Aptos is explained here. The pyth-aptos-js package can be used to fetch price feed update data which can be passed to the
- Full-stack React app and on-chain contract which uses the pyth-aptos-js package to update the price used by the contract.
- In-depth explanation of how Pyth works on Aptos and how to integrate Pyth data in your application from one of our contributor.
Pyth is currently deployed on Aptos Mainnet and Testnet.
When deploying contracts using Pyth, the named addresses
deployerneed to be defined at compile time. These addresses are the same across both Testnet and Mainnet.
wormholeare implementation details of the Pyth contract: you will not need to interact with these.
Available Price Feeds