getAllOffers

Retrieves all offers based on the provided options.

Example

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

Parameters

The options for retrieving the offers.

Type

Returns

let returnType: {
asset: NFT;
assetContractAddress: Address;
currencyContractAddress: Address;
currencyValue: GetBalanceResult;
endTimeInSeconds: bigint;
id: bigint;
offerorAddress: Address;
quantity: bigint;
status: ListingStatus;
tokenId: bigint;
totalPrice: bigint;
};

A promise that resolves to the offers array.