UNPKG

@accret/api-client

Version:

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

29 lines 1.29 kB
import Moralis from "moralis"; import { Alchemy, Network as AlchemyNetworks } from "alchemy-sdk"; import { ShyftSdk } from "@shyft-to/js"; /** * Creates an Alchemy client instance. * @param apiKey - The Alchemy API key. * @param network - The Alchemy network to connect to. * @throws An error if the API key is invalid or if the network is not supported. * @returns An instance of the Alchemy client. */ export declare function createAlchemyClient(apiKey: string, network: AlchemyNetworks): Alchemy; /** * Initializes the Moralis SDK. * @param apiKey - The Moralis API key. * @description Initializes the Moralis SDK with the provided API key. * @throws Will throw an error if the API key is invalid or if Moralis is already * @returns An instance of the Moralis SDK. */ export declare function InitializeMoralis(apiKey: string): Promise<typeof Moralis>; /** * Initializes the Shyft SDK. * @param apiKey - The Shyft API key. * @description Initializes the Shyft SDK with the provided API key. * @throws Will throw an error if the API key is invalid. * @throws Will throw an error if the Shyft SDK is already initialized. * @returns An instance of the Shyft SDK. */ export declare function InitializeShyft(apiKey: string): Promise<ShyftSdk>; //# sourceMappingURL=index.d.ts.map