Skip to main content

useResetClaimConditions() function

This feature is currently in beta and may change based on feedback that we receive.

Use this to reset claim conditions on your DropContract

Example

const Component = () => {
const { contract } = useContract(<ContractAddress>);
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>
);
};

Signature:

export declare function useResetClaimConditions(
contract: RequiredParam<DropContract>,
tokenId?: BigNumberish,
): import("@tanstack/react-query").UseMutationResult<
Omit<
{
receipt: import("@ethersproject/abstract-provider").TransactionReceipt;
data: () => Promise<unknown>;
},
"data"
>,
unknown,
void,
unknown
>;

Parameters

ParameterTypeDescription
contractRequiredParam<DropContract>an instance of a DropContract
tokenIdBigNumberish(Optional)

Returns:

import("@tanstack/react-query").UseMutationResult<Omit<{ receipt: import("@ethersproject/abstract-provider").TransactionReceipt; data: () => Promise<unknown>; }, "data">, unknown, void, unknown>

a mutation object that can be used to reset claim conditions