Marketplace.getListing() method
Convenience function to get either a direct or auction listing
Example
const listingId = 0;
const listing = await contract.getListing(listingId);
Signature:
getListing(listingId: BigNumberish): Promise<AuctionListing | DirectListing>;
Parameters
Parameter | Type | Description |
---|---|---|
listingId | BigNumberish | the listing id |
Returns:
Promise<AuctionListing | DirectListing>
either a direct or auction listing
Remarks
Get a listing by its listing id