Function useActiveClaimCondition

  • Beta

    Get the active claim condition

    Parameters

    • contract: RequiredParam<DropContract>

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

    • Optional tokenId: BigNumberish

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

    • Optional options: ClaimConditionFetchOptions

    Returns UseQueryResult<ClaimCondition | undefined>

    a response object with the currently active claim condition

    Example

    const { data: activeClaimCondition, isLoading, error } = useActiveClaimCondition(contract);
    

    Twfeature

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

    See

    Documentation

Generated using TypeDoc