UNPKG

@macalinao/grill

Version:

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

16 lines 559 B
import type { TokenInfo } from "@macalinao/token-utils"; import type { Address } from "@solana/kit"; import type { UseQueryResult } from "@tanstack/react-query"; export interface UseTokenInfoInput { /** * Mint address of the token to get the info of. */ mint: Address | null | undefined; } /** * Hook for getting the {@link TokenInfo} for a given mint address. * @param param0 * @returns */ export declare function useTokenInfo({ mint, }: UseTokenInfoInput): UseQueryResult<TokenInfo | null>; //# sourceMappingURL=use-token-info.d.ts.map