dexscreener-sdk
Version:
A TypeScript wrapper for the DEX Screener API, providing easy access to token profiles, boosts, orders, pairs, and more.
22 lines (21 loc) • 764 B
TypeScript
import { Pair } from '../models/Pair.js';
/**
* Represents the response structure for pair queries.
*/
export interface PairsResponse {
schemaVersion: string;
pairs: Pair[];
}
/**
* Fetches a pair by its ID.
* @param chainId - The blockchain identifier (e.g., "solana").
* @param pairId - The pair's unique identifier.
* @returns A promise that resolves to a PairsResponse object.
*/
export declare const getPairById: (chainId: string, pairId: string) => Promise<PairsResponse>;
/**
* Searches for pairs matching a given query.
* @param query - The search query (e.g., "SOL/USDC").
* @returns A promise that resolves to a PairsResponse object.
*/
export declare const searchPairs: (query: string) => Promise<PairsResponse>;