2.0 RC docsView 1.x docs
v2.0.0-rc.1 release candidate
The API is frozen and later candidates carry fixes only, except the receipt-free and Safe create surface of /fhe-airdrop, which is @beta. Published on the next dist-tag; latest stays on 1.6.0 until 2.0.0.
ReaduseQuery

useIsActiveDelegate

Whether delegate currently holds user-decryption delegation over this compliance-manager clone's airdrop.

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

Description

Whether delegate currently holds user-decryption delegation over this compliance-manager clone's airdrop. address is the CLONE.

Authoritative: it reads the ACL expiration directly rather than the contract's EnumerableSet mirror, so unlike useComplianceInfo's clientDelegates it also answers true for the irrevocable platform compliance delegate.

On-chain truth only. A true here does not mean the Zama gateway will serve a delegated decrypt yet - it observes ACL changes out of band, with a lag @zama-fhe/sdk 3.6 puts at about 10 blocks (longer behind a lagging RPC). A UI that renders "delegated" off this value must still treat isAclPropagationError as a retry-with-backoff signal rather than a failure.

Signature

@tokenops/sdk/fhe-airdrop/react
ts
function useIsActiveDelegate(args: UseIsActiveDelegateArgs): UseQueryResult<boolean, Error>;

Parameters

Shape of the options object passed to the hook itself.

PropertyTypeDescription
delegateAddressThe address to check. Stays disabled until it is defined.
Want to run a similar shape interactively? The Playground ships 12 ready presets across vesting / airdrop / disperse / faucet — deploy a manager, create a vesting, claim, and run the product equivalents. The deep-link above auto-selects the closest preset to useIsActiveDelegate; pick another from the dropdown if you'd rather start there.

Example

@tokenops/sdk/fhe-airdrop/react · @example
tsx
const { data: canDecrypt } = useIsActiveDelegate({ address: managerAddress, delegate: officer });

Pulled directly from the hook's TSDoc block — the same snippet your IDE shows on hover.

See also

Other Read hooks in airdrop v2: