← Developer Forum

Price Feeds·help question·✓ answered

Solana - Mint account to Pyth oracle price

Open on dev-forum →Back to forum

:link: Chain Solana

:receipt: I am building an application where I need to get the price of token with oracle that we can derive the feed accounts based on the base asset (USD) and the other side of the pair Sol, or tokens (mint). So basically users can pay with any token for their USD.

Currently, I am having a list of token/USD pair pyth sponsored accounts. In the frontend, I have to manually check the token spent and send that particular pyth sponsored feed account.

I am looking for a way to better handle this. Like I need to pass in the mint account and it just gives me feed_id or better gives the price directly instead of me having to maintain a list of the price accounts. Everything must happen on chain though.

Showing the original post only. Read the full thread on dev-forum.pyth.network ↗

Replies: 3
Views: 609
Likes: 1
Posted: 6/14/2025

Source: https://dev-forum.pyth.network/t/solana-mint-account-to-pyth-oracle-price/214 · external id 214