@accret/api-client
Version:
A comprehensive SDK for blockchain data access via Moralis, Alchemy, and Shyft APIs
31 lines • 1.35 kB
TypeScript
import { AccretSupportedChain } from "../types";
import { EvmChain } from "moralis/common-evm-utils";
import { Network as AlchemyNetworks } from "alchemy-sdk";
import { type SolNetworkInput } from "moralis/common-sol-utils";
import { Network as ShyftNetworks } from "@shyft-to/js";
type MoralisNetworks = EvmChain | SolNetworkInput;
type AccretChainMapping = AlchemyNetworks | MoralisNetworks | ShyftNetworks;
type ChainIdentifiers = {
alchemy: AlchemyNetworks | null;
moralis: EvmChain | SolNetworkInput;
shyft?: ShyftNetworks;
};
/**
* Gets the supported Accret chain for a given chain identifier.
* @param chain The chain identifier to check.
* @returns The respective Accret chain identifier.
*/
export declare function getAccretSupportedChain({ chain, }: {
chain: AccretChainMapping;
}): AccretSupportedChain;
/**
* @description This function retrieves the chain identifiers for a given Accret supported chain.
* @param chain The Accret supported chain for which to get the identifiers.
* @throws An error if the chain is not supported.
* @returns An object of chain identifiers(Alchemy, Moralis, Shyft) for the specified Accret supported chain.
*/
export declare function getChainIdentifiers({ chain, }: {
chain: AccretSupportedChain;
}): ChainIdentifiers;
export {};
//# sourceMappingURL=supportedChain.d.ts.map