useIsActiveDelegate
Whether delegate currently holds user-decryption delegation over this compliance-manager clone's airdrop.
@tokenops/sdk/fhe-airdrop/react{ data, isLoading, error, refetch }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
function useIsActiveDelegate(args: UseIsActiveDelegateArgs): UseQueryResult<boolean, Error>;Parameters
Shape of the options object passed to the hook itself.
| Property | Type | Description |
|---|---|---|
| delegate | Address | The address to check. Stays disabled until it is defined. |
Example
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:
useAirdropTokenRead the ERC-7984 token an airdrop instance distributes.useAirdropWindowRead an airdrop instance's claim-window snapshot in one round trip.useAirdropGasFeeRead the per-claim ETH fee (wei) an instance charges; 0n on a fee-free campaign.useMerkleRootRead a MerkleConfidentialAirdrop instance's currently published root.