Prepares a transaction to call the "approve" function on the contract.
import { sendTransaction } from "thirdweb";import { approve } from "thirdweb/extensions/erc721"; const transaction = approve({ contract, to: ..., tokenId: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function approve( >,
The options for the "approve" function.
>;
A prepared transaction object.