useCancelDirectListing
Hook for canceling a direct listing on a MarketplaceV3 contract.
Direct listings can be canceled at any time, (unless the listing has already been sold). Only the creator of the listing can cancel it.
Note: This hook is only for Marketplace V3 contracts.
For Marketplace
contracts, use useCancelListing
instead.
Mutation object to cancel a direct listing by passing the ID of the listing you want to cancel.
The mutation function takes the listingId
as an argument.
The error
property is set if the listing is not active, or was not created by the wallet
listingId
The ID of the listing you want to cancel.