@macalinao/grill
Version:
Modern Solana development kit for React applications with automatic account batching, caching, and transaction notifications
19 lines • 633 B
TypeScript
/**
* Hook to compute the Associated Token Account (ATA) address for a given mint and owner
*
* @example
* ```typescript
* const { data: ataPda, isLoading } = useAssociatedTokenPda({
* mint: mintAddress,
* owner: ownerAddress,
* tokenProgram: TOKEN_PROGRAM_ADDRESS,
* });
*
* if (ataPda) {
* const [ataAddress, bump] = ataPda;
* console.log("ATA address:", ataAddress);
* }
* ```
*/
export declare const useAssociatedTokenPda: import("./create-pda-hook.js").PdaHook<import("@solana-program/token").AssociatedTokenSeeds, import("gill").Address<string>>;
//# sourceMappingURL=use-associated-token-pda.d.ts.map