Mints ERC1155 tokens to a specified address via a MintableERC1155 module.
import { MintableERC1155 } from "thirdweb/modules"; const transaction = MintableERC1155.mintWithRole({ contract, to: "0x...", // Address to mint tokens to amount: 2, // Amount of tokens to mint nft: { name: "My NFT", description: "This is my NFT", image: "ipfs://...", },}); // Send the transactionawait sendTransaction({ transaction, account });
function mintWithRole( options: BaseTransactionOptions<EditionMintParams>,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for minting tokens.
let options: BaseTransactionOptions<EditionMintParams>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A transaction to mint tokens.