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: { asset: NFT; assetContractAddress: Address; creatorAddress: Address; currencyContractAddress: Address; currencyValuePerToken: GetBalanceResult; endTimeInSeconds: bigint; id: bigint; isReservedListing: boolean; pricePerToken: bigint; quantity: bigint; startTimeInSeconds: bigint; status: ListingStatus; tokenId: bigint; type: "direct-listing";};
A promise that resolves to the direct listing.