mintTo

Mints a specified amount of tokens to a given address.

Example

import { mintTo } from "thirdweb/extensions/erc20";
import { sendTransaction } from "thirdweb";
const transaction = mintTo({
contract,
to: "0x...",
amount: 100,
});
await sendTransaction({ transaction, account });
function mintTo(

Parameters

The options for minting tokens.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.