Docs

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...",
});

Parameters

Returns

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