ReaduseQuery
useAirdropClaimedSignatures
Check whether a pre-computed claim struct hash has been consumed on this airdrop clone.
Import
@tokenops/sdk/fhe-airdrop/reactReturn
{ data, isLoading, error, refetch }Lifecycle
ReadDescription
Check whether a pre-computed claim struct hash has been consumed on this airdrop clone.
Prefer useAirdropIsSignatureClaimed unless you already hold the
pre-computed bytes32 struct hash — that hook takes the more common
(user, encryptedAmountHandle) shape and computes the hash for you.
Signature
@tokenops/sdk/fhe-airdrop/react
ts
function useAirdropClaimedSignatures(args: UseAirdropClaimedSignaturesArgs): UseQueryResult<boolean, Error>;Parameters
Shape of the options object passed to the hook itself.
| Property | Type | Description |
|---|---|---|
| signatureHash | Hex | EIP-712 struct hash of a Claim. Hook is disabled until set. |
Example
components/useAirdropClaimedSignaturesExample.tsx
tsx
"use client";
import { useAirdropClaimedSignatures } from "@tokenops/sdk/fhe-airdrop/react";
export function Example() {
const { data, isLoading } = useAirdropClaimedSignatures(/* args */);
if (isLoading) return "loading…";
return <pre>{JSON.stringify(data, null, 2)}</pre>;
}Auto-generated from the hook's shape (the SDK doesn't carry a TSDoc @example here yet).
See also
Other Read hooks in airdrop:
useFactoryDefaultGasFeeRead the factory-wide default per-claim gas fee (in wei) — applied to new airdrop clones at deployment when the creator has no custom override.useFactoryFeeCollectorRead the factory's current fee collector address — the account authorized to call withdrawGasFee on each deployed airdrop clone.useFactoryCustomFeeRead the per-creator fee override set on the factory for creator.useAirdropTokenRead the airdrop clone's immutable TOKEN.