Home > @3rdweb/sdk > IMarketplace > closeAuctionListing
Closes an auction listing and distributes the payment/assets. You can only close the listing after it has already ended.
This method must be called by both the buyer and the seller.
When the buyer calls this method, the tokens they purchased will be distributed to the buyers wallet.
When the seller calls this method, the winning bid will be distributed to the sellers wallet.
Signature:
closeAuctionListing(listingId: BigNumberish, closeFor?: string): Promise<void>;
Parameter | Type | Description |
---|---|---|
listingId | BigNumberish | Id of the listing to remove. |
closeFor | string | The address of the wallet to close the sale for (buyer or seller). |
Returns:
Promise<void>