Home > @3rdweb/sdk > IMarketplace > getListing
Helper method to fetch a listing without knowing the type.
Signature:
getListing(listingId: BigNumberish): Promise<AuctionListing | DirectListing>;
Parameter | Type | Description |
---|---|---|
listingId | BigNumberish | The ID of the listing to fetch. |
Returns:
Promise<AuctionListing | DirectListing>