Skip to main content

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

ParameterTypeDescription
listingIdBigNumberishthe listing id

Returns:

Promise<AuctionListing | DirectListing>

either a direct or auction listing

Remarks

Get a listing by its listing id