@macalinao/grill
Version:
Modern Solana development kit for React applications with automatic account batching, caching, and transaction notifications
13 lines • 607 B
JavaScript
import { createDecodedAccountHook, createDecodedAccountsHook, } from "@macalinao/grill";
import { getMintDecoder } from "@solana-program/token";
/**
* Hook for fetching and decoding a mint account
* Useful for getting token information like decimals, supply, and authorities
*/
export const useMintAccount = createDecodedAccountHook(getMintDecoder());
/**
* Hook for fetching and decoding multiple mint accounts
* Useful for getting token information like decimals, supply, and authorities
*/
export const useMintAccounts = createDecodedAccountsHook(getMintDecoder());
//# sourceMappingURL=mint.js.map