Here’s article with detailed instructions on to find the poolId
in Solan Explorer:
Finding the Pool ID: A Step-by-Step Guide
Assessed by the Payment Mechanism for Marketplaces) Liquidity Pool surf. This is crucial for various reasons, including automating tasks and troubleshooting issues. In this article, we’ll walk you’re the processes of finess your poolId
in Solan Explorer.
Prerequisites
Before Proceeding, Ensure that:
- You have Raydium SDK v2 installed on your Solan node.
- You’ve set up a liquilidity pool using the @raydium-io/raydium-sdk-v2 package.
- You’ve created a new transaction (tx) to interact with a liquidity pool.
Step 1: Create a Transaction
To find the poolId
, you will be able to commit the transacts with your liquidity pool. Here’s how:
- Open Solana Explorer ([ and navigate to them “Create Transaction” tab.
- Choose the type off transaction (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 Transction
Now, you’re need to-send to interact with your liquidity pool. Here's how:
- Open the transaction editor in Solana Explorer ([
2.
- Choose the transction type (e.g.,Create Pool
).
- Signs of Selecting your Liquidity The List in available Addresses.
Step 3: Retree the Transaction ID
Offer executing the transaction, you'll receive an output. To retrie thepoolId, you Need to:
- Check the transaction output for the "d" property.
- The currive shueld match thepoolId
you’s noted down in Step 1.
Example Use Case
Let's say your pool attachment is0x…. If you've entered a
poolNamea
My Centralized Payment Mechanism’, you’ll be the the flowing to retrievue the poolId
:
`javacript
const raydium = require('@raydium-io/raydium sdk-v2');
async function getPoolId() {
const { pool, tx } = await raydium.createPool({ {
name: 'My Centralized Payment Mechanism',
poolId: '0x...', // Not down thepoolId
});
the return tx.d;
}
getPoolId().then((/poolId) => console.log(poolId));
`
Tips and Variations
- You're also use the Solana Explorer's "Transaction History" tab to-view the transactions related to yours. This might help you identify whist transactions.
- If you're wesing a custom-script or node, make sure of thepoolId’s fromation output output and pass is an argument to your script.
By following these steps, you shuold bead to find your poolId
in Solan Explorer. Happy querying!