UNPKG

@accret/api-client

Version:

A comprehensive SDK for blockchain data access via Moralis, Alchemy, and Shyft APIs

38 lines 1.72 kB
import { getTokenMetadata, getTokenPrice, getHistoricalTokenPrice } from "./token"; import { getTokensForWallet, getTransactionHistory } from "./portfolio"; import { getAccretSupportedChain, getChainIdentifiers } from "./utils/supportedChain"; import { AccretSupportedChain } from "./types"; import { HistoricalPriceInterval } from "alchemy-sdk"; export declare class AccretClient { private static instance; /** * Returns the singleton instance of the AccretClient. * If the instance does not exist, it creates a new one. * @returns The singleton instance of AccretClient. */ constructor(); /** * Initializes the Accret client with the provided API keys. * @param alchemyApiKey - The Alchemy API key. * @param moralisApiKey - The Moralis API key. * @param shyftApiKey - The Shyft API key. * @param heliusApiKey - The Helius API key. * @throws An error if any of the API keys are invalid. */ configure({ alchemyApiKey, moralisApiKey, shyftApiKey, heliusApiKey, }: { alchemyApiKey: string; moralisApiKey: string; shyftApiKey: string; heliusApiKey: string; }): Promise<AccretClient>; getTokenMetadata: typeof getTokenMetadata; getTokenPrice: typeof getTokenPrice; getHistoricalTokenPrice: typeof getHistoricalTokenPrice; getTokensForWallet: typeof getTokensForWallet; getTransactionHistory: typeof getTransactionHistory; getAccretSupportedChain: typeof getAccretSupportedChain; getChainIdentifiers: typeof getChainIdentifiers; AccretSupportedChain: typeof AccretSupportedChain; HistoricalPriceInterval: typeof HistoricalPriceInterval; } //# sourceMappingURL=index.d.ts.map