Home > @3rdweb/sdk > BundleDropModule > createBatch
Create Many NFTs
Signature:
createBatch(metadatas: MetadataURIOrObject[]): Promise<string[]>;
Parameter | Type | Description |
---|---|---|
metadatas | MetadataURIOrObject[] |
Returns:
Promise<string[]>
Create and mint NFTs.
// Custom metadata of the NFTs to create
const metadatas = [{
name: "Cool NFT",
description: "This is a cool NFT",
image: fs.readFileSync("path/to/image.png"), // This can be an image url or file
}, {
name: "Cool NFT",
description: "This is a cool NFT",
image: fs.readFileSync("path/to/image.png"), // This can be an image url or file
}];
await module.createBatch(metadatas);