Docs

BatchMintMetadata (ERC1155 & ERC721)

import "@thirdweb-dev/contracts/extension/BatchMintMetadata.sol";

The BatchMintMetadata smart contract is an extension for any NFT contract. It lets the smart contract using this extension set the metadata for n number of NFTs in one transaction. A single base URI for a batch of n NFTs is defined, where the metadata URI for each NFT in a relevant batch is baseURI/tokenId.

View on GitHub

Usage

This is an example smart contract demonstrating how to inherit from this extension and override the functions to add (optional) custom functionality.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@thirdweb-dev/contracts/extension/BatchMintMetadata.sol";
contract MyContract is BatchMintMetadata {}

Base Contracts Implementing This Extension

None of the base contracts implement this extension.

Full API reference