Retrieves a direct listing based on the provided options.
import { getListing } from "thirdweb/extensions/marketplace"; const listing = await getListing({ contract, listingId: 1n });
function getListing( options: BaseTransactionOptions<GetListingParams>,): Promise<DirectListing>;
The options for retrieving the listing.
let options: BaseTransactionOptions<GetListingParams>;
let returnType: Promise<DirectListing>;
A promise that resolves to the direct listing.