Solana: How to find CPMM pool address in Solana Explorer create tx

Here’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’ve created a CPMM (Centralized Payment Mechanism for Marketplaces) liquidity pool using Raydium SDK v2, it’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’ll walk you through the process of finding your poolId in Solana Explorer.

Prerequisites

Solana: How to find CPMM pool address on Solana Explorer create tx

Before proceeding, make sure:

  • You have Raydium SDK v2 installed on your Solana node.

  • You’ve set up a liquidity pool using the @raydium-io/raydium-sdk-v2 package.

  • You’ve 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.

  • Choose the transaction type (e.g., “Create Pool”).

  • Fill in the required information:

*
Pool Name: Enter your pool name.

*
Pool ID

: Note down the poolId you want to find.

Step 2: Send a Transaction

Now, you need to send this transaction to interact with your liquidity pool. Here’s how:

  • Open the transaction editor in Solana Explorer ([

  • Click on the “Execute” button to create a new transaction.

  • Choose 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 executing the transaction, you’ll receive an output. To retrieve the poolId, you need to:

  • Check the transaction output for the “id” property.

  • The value should match the poolId you noted down in Step 1.

Sample Use Cases

Let’s say your pool address is 0x.... If you’ve entered a 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 down the poolId

});

return tx.id;

}

getPoolId().then((poolId) => console.log(poolId));

Tips and Variations

  • You can also use the Solana Explorer’s “Transaction History” tab to view all transactions related to your liquidity pool. This might help you identify which transaction interacts with your pool.

  • If you’re using a custom script or node, make sure to retrieve the poolId from the transaction output and pass it as an argument to your script.

By following these steps, you should be able to find your poolId in Solana Explorer. Happy querying!

LEVEL SOLUTIONS AVAX

Compartilhe com outros esta informação

Facebook
Twitter
LinkedIn
Twitter
Email
Telegram
WhatsApp

Outras Notícias

Notícias recentes

O PARAIBANO - PORTAL DE NOTÍCIAS