Docs

approveCurrencyForListing

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

Example

import { approveCurrencyForListing } from "thirdweb/extensions/marketplace";
const transaction = approveCurrencyForListing({
contract,
listingId: ...,
currency: ...,
pricePerTokenInCurrency: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.