getAllAuctions

Retrieves all auctions based on the provided options.

Example

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

Parameters

The options for retrieving the auctions.

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 auctions array.