getAllValidAuctions

Retrieves all valid auctions based on the provided options.

Example

import { getAllValidAuctions } from "thirdweb/extensions/marketplace";
const validAuctions = await getAllValidAuctions({
contract,
start: 0,
count: 10,
});
function getAllValidAuctions(
): Promise<Array<EnglishAuction>>;

Parameters

The options for retrieving the listing.

Type

Returns

let returnType: {
asset: NFT;
assetContractAddress: Address;
bidBufferBps: bigint;
buyoutBidAmount: bigint;
buyoutCurrencyValue: GetBalanceResult;
creatorAddress: Address;
currencyContractAddress: Address;
endTimeInSeconds: bigint;
id: bigint;
minimumBidAmount: bigint;
minimumBidCurrencyValue: GetBalanceResult;
quantity: bigint;
startTimeInSeconds: bigint;
status: ListingStatus;
timeBufferInSeconds: bigint;
tokenId: bigint;
type: "english-auction";
};

A promise that resolves to the valid auctions array.