Prepares a transaction to call the "mint" function on the contract.
import { sendTransaction } from "thirdweb";import { mint } from "thirdweb/extensions/erc4626"; const transaction = mint({ contract, shares: ..., receiver: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function mint( options: BaseTransactionOptions< MintParams | { asyncParams: () => Promise<MintParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "mint" function.
let options: BaseTransactionOptions< MintParams | { asyncParams: () => Promise<MintParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.