Get Single Pair
Fetch comprehensive data for a specific DLMM trading pair including reserves, fees, and configuration.
Prerequisites
Before fetching pair data:
Have a valid pair address
Initialize the SDK with network connection
Understand basic pair structure and bins
Basic Usage
const pairAddress = "0x123...abc";
const pair = await sdk.Pair.getPair(pairAddress);
if (!pair) {
console.log("Pair not found");
return;
}
console.log("Active Bin ID:", pair.parameters.active_id);
console.log("Bin Step:", pair.binStep);Returned Data Structure
Common Usage Patterns
Check Pair Status
Monitor Pair Metrics
Error Handling
Use Cases
Before Trading: Check reserves and active bin
Analytics: Monitor TVL and fee parameters
Position Management: Get position manager address
Price Discovery: Find current trading price
Related Topics
Get All Pairs - Discover available pairs
Get Pair Bins - Detailed bin information
Get Pair Reserves - Liquidity distribution
Execute Swap - Trade on the pair
Last updated