approveBuyerForListing

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

Example

import { sendTransaction } from "thirdweb";
import { approveBuyerForListing } from "thirdweb/extensions/marketplace";
const transaction = approveBuyerForListing({
contract,
listingId: ...,
buyer: ...,
toApprove: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function approveBuyerForListing(
| { asyncParams: () => Promise<ApproveBuyerForListingParams> }
>,

Parameters

The options for the "approveBuyerForListing" function.

Type

| { asyncParams: () => Promise<ApproveBuyerForListingParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.