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 });