Function useResetClaimConditions

  • Beta

    Reset claim conditions

    Parameters

    Returns UseMutationResult<Omit<{
        data: (() => Promise<unknown>);
        receipt: providers.TransactionReceipt;
    }, "data">, unknown, void, unknown>

    a mutation object that can be used to reset claim conditions

    Example

    const Component = () => {
    const { contract } = useContract("{{contract_address}}");
    const {
    mutate: resetClaimConditions,
    isLoading,
    error,
    } = useResetClaimConditions(contract);

    if (error) {
    console.error("failed to reset claim conditions", error);
    }

    return (
    <button
    disabled={isLoading}
    onClick={resetClaimConditions}
    >
    Reset Claim Conditions
    </button>
    );
    };

    Twfeature

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

Generated using TypeDoc