UNPKG

@macalinao/react-quarry

Version:

React hooks for Quarry

23 lines 753 B
import type { PdaHook } from "@macalinao/grill"; import type { OperatorSeeds } from "@macalinao/quarry"; import type { Address } from "@solana/kit"; /** * Hook to derive the PDA address for an Operator. * Computes the deterministic address for an Operator account * based on the base and operator key. * * @param seeds - The seeds for deriving the Operator PDA * @param seeds.base - The base address * @param seeds.operator - The operator's public key * @returns The computed Operator PDA address * * @example * ```tsx * const operatorPda = useOperatorPda({ * base: baseAddress, * operator: operatorPublicKey * }); * ``` */ export declare const useOperatorPda: PdaHook<OperatorSeeds, Address>; //# sourceMappingURL=operator.d.ts.map