getAllValidOffers

Retrieves all valid offers based on the provided options.

Example

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

Parameters

The options for retrieving the valid 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.