useActiveClaimConditionForWallet

Get the active claim condition for a specific wallet

function useActiveClaimConditionForWallet(
  contract: RequiredParam<DropContract>,
  walletAddress: RequiredParam<string>,
  tokenId?: BigNumberish,
): UseQueryResult<ClaimCondition | null>;

Parameters


Returns

the active claim conditon for the wallet address or null if there is no active claim condition

type ReturnType = UseQueryResult<ClaimCondition | null>;

Example

const {
  data: activeClaimConditionForWallet,
  isLoading,
  error,
} = useActiveClaimConditionForWallet(contract, "{{wallet_address}}");