Home > @3rdweb/sdk > IMarketplace > buyoutListing
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>;
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>