ReaduseQuery Curated
useAirdropIsSignatureClaimed
Has this admin signature already been redeemed?
Import
@tokenops/sdk/fhe-airdrop/reactReturn
{ data, isLoading, error, refetch }Lifecycle
ReadDescription
Check whether a claim has been consumed for a (user, encryptedAmountHandle)
pair on this airdrop clone. The contract recomputes the struct hash
internally and looks it up in storage.
Most frontends want this hook over useAirdropClaimedSignatures —
pass the same user + encryptedAmountHandle that appear in the
admin-issued claim payload.
After a successful useClaim, invalidate this query for the claimed
(user, encryptedAmountHandle) pair.
Signature
@tokenops/sdk/fhe-airdrop/react
ts
function useAirdropIsSignatureClaimed(args: UseAirdropIsSignatureClaimedArgs): UseQueryResult<boolean, Error>;Parameters
Shape of the options object passed to the hook itself.
| Property | Type | Description |
|---|---|---|
| user | Address | Recipient address from the claim authorization. |
| encryptedAmountHandle | Hex | externalEuint64 handle (as Hex) from the claim payload. |
Example
components/useAirdropIsSignatureClaimedExample.tsx
tsx
"use client";
import { useAirdropIsSignatureClaimed } from "@tokenops/sdk/fhe-airdrop/react";
export function Example() {
const { data, isLoading } = useAirdropIsSignatureClaimed(/* 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.