getWinningBid

Retrieves the winning bid information for a given auction.

Example

import { getWinningBid } from "thirdweb/extensions/marketplace";
const winningBid = await getWinningBid({
contract,
auctionId: 0n,
});
function getWinningBid(
): Promise<
| undefined
| {
bidAmountWei: bigint;
bidderAddress: string;
currencyAddress: string;
currencyValue: CurrencyValue;
}
>;

Parameters

The options for retrieving the winning bid.

Type

Returns

let returnType: Promise<
| undefined
| {
bidAmountWei: bigint;
bidderAddress: string;
currencyAddress: string;
currencyValue: CurrencyValue;
}
>;

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