@accret/api-client
Version:
A comprehensive SDK for blockchain data access via Moralis, Alchemy, and Shyft APIs
17 lines • 1.41 kB
TypeScript
import { PaginatedResponseV3Adapter } from "@moralisweb3/api-utils";
import { EvmChain, type GetWalletTokenBalancesPriceOperationResponse as EVM_GetWalletTokenBalancesPriceOperationResponse, type GetWalletTokenBalancesPriceOperationResponseJSON as EVM_GetWalletTokenBalancesPriceOperationResponseJSON } from "@moralisweb3/common-evm-utils";
import { type Portfolio as SolanaPortfolioResponse } from "@shyft-to/js";
/**
* @description Fetches the token balances and prices for a given wallet address on an EVM chain.
* @param walletAddress The address of the wallet to fetch token balances for.
* @param network The EVM chain to fetch token balances from.
* @returns A paginated response containing the token balances and their prices.
*/
export declare function getEVMTokensForWallet(walletAddress: string, network: EvmChain): Promise<PaginatedResponseV3Adapter<EVM_GetWalletTokenBalancesPriceOperationResponse, EVM_GetWalletTokenBalancesPriceOperationResponseJSON>>;
/**
* @description Fetches the token balances for a given wallet address on the Solana network using the Shyft SDK.
* @param walletAddress The address of the wallet to fetch token balances for.
* @returns A promise that resolves to the portfolio for the specified wallet address.
*/
export declare function getSolanaTokensForWallet(walletAddress: string): Promise<SolanaPortfolioResponse>;
//# sourceMappingURL=portfolio.d.ts.map