Home > @3rdweb/sdk > MarketplaceModule > getAuctionWinner
Get Auction Winner
Signature:
getAuctionWinner(listingId: BigNumberish): Promise<string>;
Parameter | Type | Description |
---|---|---|
listingId | BigNumberish |
Returns:
Promise<string>
Get the winner of the auction after an auction ends.
// The listing ID of the auction that closed
const listingId = 0;
module
.getAuctionWinner(listingId)
.then((auctionWinner) => console.log(auctionWinner))
.catch((err) => console.error(err));