MarketplaceAuction.closeListing() method
Close the Auction
Example
// The listing ID of the auction listing you want to close
const listingId = "0";
await contract.auction.closeListing(listingId);
Signature:
closeListing(listingId: BigNumberish, closeFor?: string): Promise<TransactionResult>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| listingId | BigNumberish | the auction listing ud to close |
| closeFor | string | (Optional) optionally pass the auction creator address or winning bid offeror address to close the auction on their behalf |
Returns:
Promise<TransactionResult>
Remarks
Closes the Auction and executes the sale.