Pyth on EVM
Consume Pyth Network prices in EVM applications
On-chain EVM programs can use the Solidity SDK to read Pyth prices. The off-chain portion of the application can use pyth-evm-js to generate price update transactions. This repository's Quickstart includes an example of both the on- and off-chain code necessary to integrate with Pyth.
Pyth EVM price pusher is a service that regularly pushes price updates to the on-chain Pyth contract. Protocols can run this service to push regular updates to the on-chain Pyth price based on various conditions, such as a minimum update frequency, or a price change threshold. This service is useful for protocols that already depend on regular push updates and want to simplify migrating to Pyth. Please see the github readme for additional information on this service.
Pyth is currently available on the following EVM-based chains:
Goerli (Ethereum testnet)
Fuji (Avalanche testnet)
Mumbai (Polygon testnet)
Optimism Goerli (testnet)
Celo Alfajores (testnet)
Arbitrum Goerli (testnet)
zkSync v2 Goerli (testnet)
Base Goerli (testnet)
Chiado (Gnosis testnet)
The price feed IDs for EVM chains differs depending on whether they are a mainnet or testnet (see above):