Function useClaimConditions

  • Beta

    Get all claim conditions

    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[]>

    a response object with the list of claim conditions

    Example

    const { data: claimConditions, isLoading, error } = useClaimConditions(contract);
    

    Twfeature

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

    See

    Documentation

Generated using TypeDoc