useComplianceInfo
Read a compliance-manager clone's whole wiring in one round trip - the airdrop it serves, its platform delegate, and its client-delegate set.
@tokenops/sdk/fhe-airdrop/react{ data, isLoading, error, refetch }Description
Read a compliance-manager clone's whole wiring in one round trip - the airdrop it serves, its platform delegate, and its client-delegate set.
address is the CLONE, not the airdrop instance: resolve it with
useComplianceManagerOf or take it off CreateAirdropResult.complianceManager.
A zero platformDelegate is unambiguous. The factory runs the clone's
initialize atomically inside createX, so there is no observable
"deployed but not yet wired" state - zero always means "created with the
platform compliance policy off", never "not set up yet".
clientDelegates deliberately omits the platform delegate, so it is not the
answer to "may this address decrypt?" - use useIsActiveDelegate,
which reads the ACL directly and covers both slots.
Signature
function useComplianceInfo(args: UseComplianceInfoArgs): UseQueryResult<ComplianceInfo, Error>;Example
const { data } = useComplianceInfo({ address: complianceManagerAddress });
const hasPlatformDelegate = data?.platformDelegate !== "0x0000000000000000000000000000000000000000";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.