How to Find the Market ID on Solana
If you want to create a liquidity pool or run advanced actions on the Solana blockchain, you may need the Market ID for a token pair.
The Market ID, or more precisely the OpenBook Market ID, is the concept used in the Solana program library to refer to the space on the blockchain that a market (token pair) will occupy. This lets you add liquidity to the pair and make it tradable.
Find Market ID on Solana
When you create a OpenBook Market on Solana, the platform you used will show you a preview of your market ID, like the OpenBook Market creator by smithii does.
Here we explain cómo crear un OpenBook Market en Solana.
You can also find the market ID on Solana by identifying the transaction that created the market. If you created it yourself, check your wallet on Solscan and look for that transaction. Another option is to dig through Birdeye or Dexscreener for the first market creation transaction.

Once you have identified the transaction hash that created the Openbook Market ID, either from your wallet or through Birdeye or DexScreener, you’ll need to go to Solscan.io and inspect the transaction to view its details.
Here’s how the transaction that created a market ID with OpenBook Market Creator from Smithii Tools looks on Solscan:

Here’s what it looks like on Solscan for a market ID created by pump.fun:

In any case, once you open the transaction that created the OpenBook Market ID in Solscan, just scroll down and look for the OpenBook section under “Instruction Details”. The Market ID is the key shown in #1 – Account
Conclusion
Finding the Market ID on Solana is straightforward. You just need to identify the transaction that created the market (token pair) and inspect it in Solscan.
Thanks for reading. Remember to subscribe to our newsletter to get weekly content for Web3 creators.
Want to Outpace Your Competitors?
Join our newsletter for weekly Blockchain news built for NFT creators.






