an instance of a Marketplace v3 contract
a mutation object that can be used to cancel a direct listing
const Component = () => {
const { contract } = useContract("{{contract_address}}");
const {
mutate: cancelDirectListing,
isLoading,
error,
} = useCancelDirectListing(contract);
if (error) {
console.error("failed to cancel direct listing", error);
}
return (
<button
disabled={isLoading}
onClick={cancelDirectListing}
>
Cancel Direct Listing
</button>
);
};
DirectListings
Generated using TypeDoc
Cancel a direct listing