Function useActiveClaimConditionForWallet

  • Beta

    Get the active claim condition for a specific wallet

    Parameters

    • contract: RequiredParam<DropContract>

      an instance of a contract that extends the ERC20, ERC721 or ERC1155 spec and implements the claimConditions extension.

    • walletAddress: RequiredParam<string>

      the wallet address to check the active claim condition for

    • Optional tokenId: BigNumberish

      the id of the token to fetch the claim conditions for (if the contract is an ERC1155 contract)

    Returns UseQueryResult<ClaimCondition | null>

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

    Example

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

    Twfeature

    ERC20ClaimPhasesV2 | ERC20ClaimPhasesV1 | ERC20ClaimConditionsV2 | ERC20ClaimConditionsV1 | ERC721ClaimPhasesV2 | ERC721ClaimPhasesV1 | ERC721ClaimConditionsV2 | ERC721ClaimConditionsV1 | ERC1155ClaimPhasesV2 | ERC1155ClaimPhasesV1 | ERC1155ClaimConditionsV2 | ERC1155ClaimConditionsV1

    See

    Documentation

Generated using TypeDoc