Mints tokens to a specified address via a ClaimableERC20 module.
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 transactionawait sendTransaction({ transaction, account });
function mint( options: BaseTransactionOptions<MintParams>,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for minting tokens.
let options: BaseTransactionOptions<MintParams>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A transaction to mint tokens.