mintWithRole

Mints ERC721 tokens to a specified address via a MintableERC721 module.

Example

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 transaction
await sendTransaction({ transaction, account });
function mintWithRole(

Parameters

The options for minting tokens.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A transaction to mint tokens.