UNPKG

@accret/api-client

Version:

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

24 lines 1.41 kB
import { AccretSupportedChain, type TransactionHistoryResponseAdapter } from "../types"; import type { TokensForWalletResponseAdapter } from "../types"; /** * @description Interface for the properties required to get a portfolio. */ export interface GetPortfolioProps { address: string; chainId: AccretSupportedChain; } /** * @description This function retrieves tokens for a given wallet address across multiple chains (EVM and Solana) in bulk. * @description Uses the Moralis SDK for EVM chains and the Jupiter API for Solana. * @param addresses An array of objects containing wallet addresses and their respective chain IDs. * @returns An object containing the token balances for each chain. */ export declare function getTokensForWallet(addresses: GetPortfolioProps[]): Promise<TokensForWalletResponseAdapter | null>; /** * @description This function retrieves the transaction history for a given wallet address across multiple chains (EVM and Solana) in bulk. * @description Uses the Moralis SDK for EVM chains and the Jupiter API for Solana. * @param addresses An array of objects containing wallet addresses and their respective chain IDs. * @returns An array of transaction history objects for each wallet address. */ export declare function getTransactionHistory(addresses: GetPortfolioProps[]): Promise<TransactionHistoryResponseAdapter | null>; //# sourceMappingURL=index.d.ts.map