Home > @3rdweb/sdk > MarketplaceModule > getWinningBid
Get Highest Bid
Signature:
getWinningBid(listingId: BigNumberish): Promise<Offer | undefined>;
Parameter | Type | Description |
---|---|---|
listingId | BigNumberish |
Returns:
Promise<Offer | undefined>
Get the current highest bid of an active auction.
// The listing ID of the auction that closed
const listingId = 0;
module
.getWinningBid(listingId)
.then((offer) => console.log(offer))
.catch((err) => console.error(err));