mint

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

Example

import { mint } from "thirdweb/extensions/erc4626";
const transaction = mint({
contract,
shares: ...,
receiver: ...,
overrides: {
...
}
});
// Send the transaction
...
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.