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 });

Parameters

Returns

A prepared transaction object.