Skip to main content

MarketplaceAuction.getWinningBid() method

Get Highest Bid

Example

// The listing ID of the auction that closed
const listingId = 0;

contract.auction.
.getWinningBid(listingId)
.then((offer) => console.log(offer))
.catch((err) => console.error(err));

Signature:

getWinningBid(listingId: BigNumberish): Promise<Offer | undefined>;

Parameters

ParameterTypeDescription
listingIdBigNumberish

Returns:

Promise<Offer | undefined>

Remarks

Get the current highest bid of an active auction.