Beta
an instance of a Marketplace contract
a mutation object that can be used to cancel a listing
const Component = () => {
const { contract } = useContract("{{contract_address}}");
const {
mutate: cancelListing,
isLoading,
error,
} = useCancelListing(contract);
if (error) {
console.error("failed to cancel auction listing", error);
}
return (
<button
disabled={isLoading}
onClick={cancelListing}
>
Cancel Auction Listing!
</button>
);
};
Generated using TypeDoc
Cancel a listing