Get All Pairs
Get All Pairs
Prerequisites
Basic Usage
// Fetch all pairs from the network
const allPairs = await sdk.Pair.getPairs();
console.log(`Total pairs found: ${allPairs.length}`);
// Access pair data
allPairs.forEach(pair => {
console.log({
pairId: pair.id,
tokenX: pair.tokenXType,
tokenY: pair.tokenYType,
activeId: pair.parameters.active_id,
binStep: pair.binStep
});
});Method Details
Understanding the Response
Practical Examples
Find Specific Token Pairs
Check Pair Activity
Group by Bin Step
Performance Considerations
Common Use Cases
Related Topics
Last updated