@accret/api-client
Version:
A comprehensive SDK for blockchain data access via Moralis, Alchemy, and Shyft APIs
38 lines • 1.79 kB
TypeScript
import { AccretSupportedChain, type HistoricalTokenPriceResponse, type TokenMetadataResponseAdapter, type TokenPriceResponseAdapter } from "../types";
import type { HistoricalPriceInterval } from "alchemy-sdk";
/**
* @description Interface for token properties.
*/
export interface TokenProps {
address: string;
chainId: AccretSupportedChain;
}
/**
* @description Interface for historical token price request parameters.
*/
export interface HistoricalTokenPriceProps {
address: string;
chainId: AccretSupportedChain;
startTime: string;
endTime: string;
interval: HistoricalPriceInterval;
}
/**
* @description Combines the logic for fetching the current price of tokens across EVM and Solana chains in bulk.
* @param addresses Array of token addresses with their respective chain IDs.
* @returns An object containing the token prices for each chain.
*/
export declare function getTokenPrice(addresses: TokenProps[]): Promise<TokenPriceResponseAdapter>;
/**
* @description Combines the logic for fetching the metadata for tokens across EVM and Solana chains in bulk.
* @param addresses Array of token addresses with their respective chain IDs.
* @returns An object containing the token metadata for each chain.
*/
export declare function getTokenMetadata(addresses: TokenProps[]): Promise<TokenMetadataResponseAdapter>;
/**
* @description Combines the logic for fetching the historical price of tokens across EVM and Solana chains in bulk.
* @param addresses Array of historical token price request parameters.
* @returns An object containing the historical token prices for each chain.
*/
export declare function getHistoricalTokenPrice(addresses: HistoricalTokenPriceProps[]): Promise<HistoricalTokenPriceResponse>;
//# sourceMappingURL=index.d.ts.map