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
Parameter | Type | Description |
---|---|---|
listingId | BigNumberish | the id of the listing to fetch offers for |
Returns:
Promise<Offer[]>
Remarks
Fetch all the offers for a specified direct or auction listing.