approveBuyerForListing

Prepares a transaction to call the "approveBuyerForListing" function on the contract.

Example

import { approveBuyerForListing } from "thirdweb/extensions/marketplace";
const transaction = approveBuyerForListing({
contract,
listingId: ...,
buyer: ...,
toApprove: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.