UNPKG

@macalinao/react-quarry

Version:

React hooks for Quarry

21 lines 677 B
import type { PdaHook } from "@macalinao/grill"; import type { RegistrySeeds } from "@macalinao/quarry"; import type { Address } from "@solana/kit"; /** * Hook to derive the PDA address for a Registry. * Computes the deterministic address for a Registry account * based on the realm address. * * @param seeds - The seeds for deriving the Registry PDA * @param seeds.realm - The realm address for the registry * @returns The computed Registry PDA address * * @example * ```tsx * const registryPda = useRegistryPda({ * realm: realmAddress * }); * ``` */ export declare const useRegistryPda: PdaHook<RegistrySeeds, Address>; //# sourceMappingURL=registry.d.ts.map