Skip to main content

Pyth

Introduction

Pyth is an open-source real-time on-chain market data feed. Pyth price feeds exist out of the Neon EVM context. Neon EVM leverages a precompiled contract to read the feeds from Solana Mainnet and Devnet chains. The price values are regularly updated (sponsored) by the Pyth service freeing Neon users or protocols from the need to request price updates.

Supported feeds

The Pyth on Neon EVM supports the following feeds:

Price feed
Neon EVM addressPrice feed ID
SOL/ USDC0x66d23fc4521d75613921f6475ce1776ed4a8f1090xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d
USDC/USD0x94CDaE0758F7dA5EcA97646A665345BC20f72D530xeaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a
USDT/USD0xb22f95f4F203646ffe5752A5C1142A359c82cD470x2b89b9dc8fdf9f34709a5b106b472f0f39bb6ca9ce04b0fd7f2e971688e2e53b
ETH/USD0x9ca5Ae7Fdc9Ef33fd8B86634678252Af052cF9200xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace
NEON/ USD0x5418Bd0bd3A43D6DcC486fb374a2346BE5e07A0D0xd82183dd487bef3208a227bb25d748930db58862c5121198e723ed0976eb92b7
BTC/USD0x4359E879c83fB21e33BB62061bf22806873F06d60xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43
WBTC/USD0x8C96809746B45e1506007613d6Ec035cA41bEcB40xc9d8b075a5c69303365ae23633d4e085199bf5c520a3b90fed1322a0342ffc33
JITOSOL/USD0x05CE377b7df379460EdEcB2baa3Ca18fB59b082C0x67be9f519b95cf24338801051f9a808eff0a578ccb388db73b7f6fe1de019ffb
MSOL/USD0x47b1aD7a08D026a54DEd3d9C3935173FEdfbD2CF0xc2289a6a43d2ce91c6f55caec370f4acc38a2ed477f58813334c6d03749ff2a4
BONK/USD0x3d22FD7e59D19e08a6D5f55aD720549339fc85440x72b021217ca3fe68922a19aaf990109cb9d84e9ad004b4d2025ad6f529314419
JUP/USD0xD98d90B922C0a7112825232C7380B99176F090A70x0a0408d619e9380abad35060f9192039ed5042fa6f82301d0e48bb52be830996
INF/USD0x4Ff8DfecEb1d29bbF58e92Cc9847fd20b51406aD0xf51570985c642c49c2d6e50156390fdba80bb6d5f7fa389d2f012ced4f7d208f

How to integrate with the Pyth contract

You can use this Boilerplate code for your contract to use the Pyth feeds on Neon EVM.

If you wish to have access to a not-yet Neon-supported price feed from Solana, you can leverage this script. This script will work for any of the listed "sponsored" price feeds.

important

Using the script for a price feed which is not sponsored will lead to reading stale values.

It's also recommended to follow the consumer best practices when consuming Pyth data.

Was this page helpful?