typescript-sdk

Home > @3rdweb/sdk > MarketplaceModule > cancelDirectListing

MarketplaceModule.cancelDirectListing() method

Cancel Direct Listing

Signature:

cancelDirectListing(listingId: BigNumberish): Promise<void>;

Parameters

Parameter Type Description
listingId BigNumberish  

Returns:

Promise<void>

Remarks

Cancel a direct listing on the marketplace

Example

// The listing ID of the direct listing you want to cancel
const listingId = "0"

await module.cancelDirectListing(listingId);