ReaduseQuery

useAirdropClaimedSignatures

Check whether a pre-computed claim struct hash has been consumed on this airdrop clone.

Import
@tokenops/sdk/fhe-airdrop/react
Return
{ data, isLoading, error, refetch }
Lifecycle
Read

Description

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.

PropertyTypeDescription
signatureHashHexEIP-712 struct hash of a Claim. Hook is disabled until set.
Want to run a similar shape interactively? The Playground ships 8 ready presets across vesting / airdrop / disperse — deploy a manager, create a vesting, claim, and the airdrop / disperse equivalents. The deep-link above auto-selects the closest preset to useAirdropClaimedSignatures; pick another from the dropdown if you'd rather start there.

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: