Docs

getWinningBid

Retrieves the winning bid information for a given auction.

Example

import { getWinningBid } from "thirdweb/extensions/marketplace";
const winningBid = await getWinningBid({
contract,
auctionId: 0n,
});

Parameters

Returns

The winning bid information, or undefined if there is no winning bid.