mint

Mints tokens to a specified address via a ClaimableERC20 module.

Example

import { ClaimableERC20 } from "thirdweb/modules";
const transaction = ClaimableERC20.mint({
contract,
to: "0x...", // Address to mint tokens to
quantity: "0.1", // Amount of tokens to mint (in decimals)
});
// Send the transaction
await sendTransaction({ transaction, account });
function mint(

Parameters

The options for minting tokens.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A transaction to mint tokens.