Prepares a transaction to call the "approveBuyerForListing" function on the contract.
import { sendTransaction } from "thirdweb";import { approveBuyerForListing } from "thirdweb/extensions/marketplace"; const transaction = approveBuyerForListing({ contract, listingId: ..., buyer: ..., toApprove: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function approveBuyerForListing( options: BaseTransactionOptions< | ApproveBuyerForListingParams | { asyncParams: () => Promise<ApproveBuyerForListingParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "approveBuyerForListing" function.
let options: BaseTransactionOptions< | ApproveBuyerForListingParams | { asyncParams: () => Promise<ApproveBuyerForListingParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.