Recovery · pause / withdrawuseQuery
useAirdropIsPaused
Read whether claims are currently paused by the admin on this airdrop clone.
Import
@tokenops/sdk/fhe-airdrop/reactReturn
{ data, isLoading, error, refetch }Lifecycle
Recovery · pause / withdrawDescription
Read whether claims are currently paused by the admin on this airdrop clone.
After a successful useSetPaused, invalidate this query.
Signature
@tokenops/sdk/fhe-airdrop/react
ts
function useAirdropIsPaused(options: AirdropHookOptions): UseQueryResult<boolean, Error>;Example
components/useAirdropIsPausedExample.tsx
tsx
"use client";
import { useAirdropIsPaused } from "@tokenops/sdk/fhe-airdrop/react";
export function Example() {
const { data, isLoading } = useAirdropIsPaused(/* 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 Recovery · pause / withdraw hooks in airdrop:
useWithdrawAdmin: withdraw all confidential tokens from the airdrop to recipient.useSetPausedAdmin: pause or unpause claims on this airdrop clone.useWithdrawOtherTokenAdmin: rescue accidentally sent ERC-20 (non-confidential) tokens.useWithdrawOtherConfidentialTokenAdmin: rescue accidentally sent ERC-7984 confidential tokens (other than this airdrop's configured TOKEN).