an instance of a Marketplace v3 contract
a mutation object that can be used to cancel an english auction
const Component = () => {
const { contract } = useContract("{{contract_address}}");
const {
mutate: cancelEnglishAuction,
isLoading,
error,
} = useCancelEnglishAuction(contract);
if (error) {
console.error("failed to cancel english auction", error);
}
return (
<button
disabled={isLoading}
onClick={cancelEnglishAuction}
>
Cancel English Auction
</button>
);
};
EnglishAuctions
Generated using TypeDoc
Cancel an english auction