typescript-sdk

Home > @3rdweb/sdk > IMarketplace > getListing

IMarketplace.getListing() method

Helper method to fetch a listing without knowing the type.

Signature:

getListing(listingId: BigNumberish): Promise<AuctionListing | DirectListing>;

Parameters

Parameter Type Description
listingId BigNumberish The ID of the listing to fetch.

Returns:

Promise<AuctionListing | DirectListing>