@macalinao/grill
Version:
Modern Solana development kit for React applications with automatic account batching, caching, and transaction notifications
15 lines • 527 B
JavaScript
import { useAccounts } from "./use-accounts.js";
/**
* Generic helper to create a hook for fetching and decoding multiple accounts
* @param decoder - The decoder to use for the account data
* @returns A hook function that fetches and decodes multiple accounts
*/
export function createDecodedAccountsHook(decoder) {
return function useDecodedAccounts({ addresses, }) {
return useAccounts({
addresses,
decoder,
});
};
}
//# sourceMappingURL=create-decoded-accounts-hook.js.map