approveCurrencyForListing

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

Example

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

Parameters

The options for the "approveCurrencyForListing" function.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.