UNPKG

pharos-agent-kit

Version:
25 lines 1.21 kB
/** * Fetches token data from DexScreener using the token address. * * @param tokenAddress - The address of the token to fetch data for. * @returns A promise that resolves to the token data as a JSON string. * @throws An error if the token address is not provided or if the fetch operation fails. */ export declare function getTokenDataByAddress(tokenAddress: string): Promise<any>; /** * Fetches token data from DexScreener using the token ticker symbol. * * @param ticker - The ticker symbol of the token to fetch data for. * @returns A promise that resolves to the token data as a JSON string. * @throws An error if the token address cannot be found or if the fetch operation fails. */ export declare function getTokenDataByTicker(ticker: string): Promise<any>; /** * Retrieves the token address from DexScreener using the token ticker symbol. * * @param ticker - The ticker symbol of the token to find the address for. * @returns A promise that resolves to the token address as a string, or null if not found. * @throws An error if the fetch operation fails. */ export declare function getTokenAddressFromTicker(ticker: string): Promise<string>; //# sourceMappingURL=get_token_data.d.ts.map