UNPKG

@saberhq/sail

Version:

Account caching and batched loading for React-based Solana applications.

14 lines 648 B
import type { PublicKey } from "@solana/web3.js"; import type { AccountDatum } from "../types"; /** * Fetches data of the given accounts. * @param keys Keys to fetch. Ensure that this is memoized or unlikely to change. * * @deprecated use {@link useBatchedParsedAccounts} instead * @returns One of three types: * - Buffer -- the account was found * - null -- account not found or an error occurred while loading the account * - undefined -- account key not provided or not yet loaded */ export declare const useAccountsData: (keys: (PublicKey | null | undefined)[]) => readonly AccountDatum[]; //# sourceMappingURL=useAccountsData.d.ts.map