Skip to main content

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

ParameterTypeDescription
listingIdBigNumberishthe auction listing ud to close
closeForstring(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.