Skip to main content

Marketplace.getOffers() method

Get all the offers for a listing

Example

const offers = await marketplaceContract.getOffers(listingId);
const firstOffer = offers[0];

Signature:

getOffers(listingId: BigNumberish): Promise<Offer[]>;

Parameters

ParameterTypeDescription
listingIdBigNumberishthe id of the listing to fetch offers for

Returns:

Promise<Offer[]>

Remarks

Fetch all the offers for a specified direct or auction listing.