@accret/api-client
Version:
A comprehensive SDK for blockchain data access via Moralis, Alchemy, and Shyft APIs
16 lines • 923 B
TypeScript
import { EvmChain, type GetTokenPriceResponseAdapter as EvmGetTokenPriceResponseAdapter } from "@moralisweb3/common-evm-utils";
import type { TokenPriceResponse } from "../types";
/**
* @description Fetches the current price of an EVM token using Moralis SDK.
* @param tokenAddress The address of the token to fetch the price for.
* @param network The EVM chain to fetch the price from.
* @returns The current price of the token.
*/
export declare function getEVMTokenPrice(tokenAddress: string, network: EvmChain): Promise<EvmGetTokenPriceResponseAdapter>;
/**
* @description Fetches the current price of a Solana token using Jupiter API.
* @param tokenAddress The address of the Solana token to fetch the price for.
* @returns An object of the current price of the token.
*/
export declare function getSolanaTokenPrice(tokenAddress: string): Promise<TokenPriceResponse>;
//# sourceMappingURL=token-price.d.ts.map