# Solana - Mint account to Pyth oracle price

**URL:** <https://dev-forum.pyth.network/t/solana-mint-account-to-pyth-oracle-price/214>\
**Category:** Price Feeds\
**Tags:** svm\
**Created:** [June 14, 2025, 12:11pm UTC](https://dev-forum.pyth.network/t/solana-mint-account-to-pyth-oracle-price/214 "2025-06-14T12:11:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oneh](https://avatars.discourse-cdn.com/v4/letter/o/85e7bf/32.png) [@oneh](https://dev-forum.pyth.network/u/oneh)\
**Post date:** [June 14, 2025, 12:11pm UTC](https://dev-forum.pyth.network/t/solana-mint-account-to-pyth-oracle-price/214/1 "2025-06-14T12:11:43Z")

</div>

• 🔗 **Chain** Solana

• 🧾 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.

---

<div class="post-metadata">

**Author:** ![guibescos](https://avatars.discourse-cdn.com/v4/letter/g/aeb1de/32.png) [@guibescos](https://dev-forum.pyth.network/u/guibescos)\
**Post date:** [June 16, 2025, 11:18am UTC](https://dev-forum.pyth.network/t/solana-mint-account-to-pyth-oracle-price/214/2 "2025-06-16T11:18:11Z")

</div>

gm!

Hermes has a list of all price feeds that you could use to programmatically map symbols to feed\_id’s. It is available here [https://hermes.pyth.network/v2/price\_feeds/](https://hermes.pyth.network/v2/price_feeds/)

I don’t think there’s an equivalent of this mapping that can be used on-chain, unfortunately.

---

<div class="post-metadata">

**Author:** ![trinitron](https://avatars.discourse-cdn.com/v4/letter/t/779978/32.png) [@trinitron](https://dev-forum.pyth.network/u/trinitron)\
**Post date:** [November 13, 2025, 10:40pm UTC](https://dev-forum.pyth.network/t/solana-mint-account-to-pyth-oracle-price/214/3 "2025-11-13T22:40:10Z")

</div>

I came with the same question. As final result i want to get FX rate for SOL/USD pair. Solana programs are using mint addresses (PubKeys) and not XXX string currency code. So you need to follow this steps to do the mapping.

- **Mint Address** → **Token Symbol** → **Pyth Price Feed ID**

1. One issue here that token symbols are not unique (PYUSD) (USDC) (USDG) (USDT).
2. Off chain json price feeds do not contain mint information.
3. What about sponsored feeds on solana? no mint information in pyth-sdk-solana.

So in most of scenarios you should maintain this type of mapping.

| | Symbol | Mint Address |
| --- | --- | --- |
| USD Coin | USDC | `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` |
| Tether | USDT | `Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB` |
| Bonk | BONK | `DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263` |

---

<div class="post-metadata">

**Author:** ![tejas\_pyth](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@tejas\_pyth](https://dev-forum.pyth.network/u/tejas_pyth)\
**Post date:** [November 18, 2025, 9:53pm UTC](https://dev-forum.pyth.network/t/solana-mint-account-to-pyth-oracle-price/214/4 "2025-11-18T21:53:12Z")

</div>

Ah yes this is true. Unfortunately we do not maintain mint information ourselves, although we’ve received some requests about it. At this time you’d need to maintain your own mapping.
