UNPKG

@macalinao/grill

Version:

Modern Solana development kit for React applications with automatic account batching, caching, and transaction notifications

24 lines 808 B
import type { TokenInfo } from "@macalinao/token-utils"; import type { Address } from "@solana/kit"; export interface UseTokenInfosInput { /** * Mint addresses of the tokens to get the info of. */ mints: (Address | null | undefined)[] | null | undefined; } export type UseTokenInfosResult = { isLoading: true; data: (TokenInfo | null | undefined)[]; mints: (Address | null | undefined)[] | null | undefined; } | { isLoading: false; data: (TokenInfo | null)[]; mints: (Address | null | undefined)[] | null | undefined; }; /** * Hook for getting the {@link TokenInfo} for multiple mint addresses. * @param param0 * @returns */ export declare function useTokenInfos({ mints, }: UseTokenInfosInput): UseTokenInfosResult; //# sourceMappingURL=use-token-infos.d.ts.map