mint

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

Example

import { sendTransaction } from "thirdweb";
import { mint } from "thirdweb/extensions/erc4626";
const transaction = mint({
contract,
shares: ...,
receiver: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function mint(
MintParams | { asyncParams: () => Promise<MintParams> }
>,

Parameters

The options for the "mint" function.

Type

MintParams | { asyncParams: () => Promise<MintParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.