import type { Chain } from "../types"; import type { Fetcher } from "./fetcher"; import type { BatchTokensRequest, GetAccountTokenActivityArgs, GetAccountTokenActivityResponse, GetSwapQuoteArgs, GetSwapQuoteResponse, GetTokenGroupResponse, GetTokenGroupsArgs, GetTokenGroupsResponse, GetTokenResponse, GetTokensArgs, GetTopTokensResponse, GetTrendingTokensResponse, OhlcvResponse, PriceHistoryResponse, SwapExecuteRequest, SwapExecuteResponse, TokenActivityArgs, TokenActivityStatsArgs, TokenActivityStatsResponse, TokenBatchResponse, TokenHoldersArgs, TokenHoldersResponse, TokenLiquidityPoolsArgs, TokenLiquidityPoolsResponse, TokenSwapActivityPaginatedResponse, TokenTimeSeriesArgs } from "./types"; /** * Token-related API operations */ export declare class TokensAPI { private fetcher; constructor(fetcher: Fetcher); /** * Gets a list of trending tokens. */ getTrendingTokens(args?: GetTokensArgs): Promise; /** * Gets a list of top tokens. */ getTopTokens(args?: GetTokensArgs): Promise; /** * Gets a swap quote. */ getSwapQuote(args: GetSwapQuoteArgs): Promise; /** * Get executable transactions for a token swap. * Supports same-chain and cross-chain swaps with multiple from/to assets. */ executeSwap(request: SwapExecuteRequest): Promise; /** * Gets details for a specific token. */ getToken(chain: string, address: string): Promise; /** * Gets a paginated list of token groups (equivalent currencies across chains). */ getTokenGroups(args?: GetTokenGroupsArgs): Promise; /** * Gets a single token group by its slug. */ getTokenGroup(slug: string): Promise; /** * Fetch multiple tokens in a single request by chain + contract address. */ getTokensBatch(request: BatchTokensRequest): Promise; /** * Fetch the price history of a token. `start_time` is required and the * default `end_time` is "now". */ getTokenPriceHistory(chain: Chain, address: string, args: TokenTimeSeriesArgs): Promise; /** * Fetch OHLCV (open / high / low / close / volume) candles for a token. * `startTime` and `bucketSize` are required. */ getTokenOhlcv(chain: Chain, address: string, args: TokenTimeSeriesArgs & { bucketSize: string; }): Promise; /** * Fetch recent swap activity for a token. */ getTokenActivity(chain: Chain, address: string, args?: TokenActivityArgs): Promise; /** * Fetch materialized trade count, USD volume, and average trade size for a * token across the requested windows. */ getTokenActivityStats(chain: Chain, address: string, args?: TokenActivityStatsArgs): Promise; /** * Fetch paginated fungible token activity (transfers, swaps, wraps, and * unwraps) for an account across all chains. */ getAccountTokenActivity(address: string, args?: GetAccountTokenActivityArgs): Promise; /** * Fetch paginated holders for a token, including quantity held, USD value, * and an aggregate distribution health label (STRONG | HEALTHY | * CONCERNING | BAD). */ getTokenHolders(chain: Chain, address: string, args?: TokenHoldersArgs): Promise; /** * Fetch liquidity pools for a token (pool type, reserves in USD, and * bonding-curve progress / graduation flag where applicable). */ getTokenLiquidityPools(chain: Chain, address: string, args?: TokenLiquidityPoolsArgs): Promise; }