mint

Mints ERC1155 tokens to a specified address via a ClaimableERC1155 module.

Example

import { ClaimableERC1155 } from "thirdweb/modules";
const transaction = ClaimableERC1155.mint({
contract,
to: "0x...", // Address to mint tokens to
quantity: 2, // Amount of tokens to mint
});
// 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.