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