isBuyerApprovedForListing

Checks if the buyer is approved for a listing.

Example

import { isBuyerApprovedForListing } from "thirdweb/extensions/marketplace";
const isApproved = await isBuyerApprovedForListing({
contract,
listingId: 1n,
buyer: "0x...",
});
function isBuyerApprovedForListing(
): Promise<boolean>;

Parameters

The options for checking buyer approval.

Type

Returns

let returnType: Promise<boolean>;

A promise that resolves to a boolean indicating whether the buyer is approved for the listing.