Mints a specified amount of tokens to a given address.
import { mintTo } from "thirdweb/extensions/erc20";import { sendTransaction } from "thirdweb"; const transaction = mintTo({ contract, to: "0x...", amount: 100,}); await sendTransaction({ transaction, account });
function mintTo( options: BaseTransactionOptions<MintToParams>,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for minting tokens.
let options: BaseTransactionOptions<MintToParams>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.