typescript-sdk

Home > @3rdweb/sdk > IMarketplace > buyoutListing

IMarketplace.buyoutListing() method

Generic buyout method that will dynamically determine the listing type.

Only direct listings support buying out a specific quantity, therefore the quantityDesired parameter is ignored if the listing ID passed in is an auction listing.

Signature:

buyoutListing(listingId: BigNumberish, quantityDesired?: BigNumberish): Promise<void>;

Parameters

Parameter Type Description
listingId BigNumberish Id of the listing to buyout.
quantityDesired BigNumberish The quantity of tokens to buyout. Required if listing is a direct listing.

Returns:

Promise<void>