ERC1155BatchMintable
ERC1155BatchMintable allows you to mint many NFTs at once in a single transaction.
Base Contracts Implementing This Feature
Unlocked Features
By implementing the ERC1155BatchMintable contract, you unlock the following features in the SDK and dashboard:
SDK Usage | Description |
---|---|
Batch Mint NFTs | Pass in an array of NFT metadata and mint multiple NFTs in one transaction to a wallet address. |
Implementing It Yourself
This section is meant for advanced users who want to write the functionality from scratch.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@thirdweb-dev/contracts/eip/ERC1155.sol";
import "@thirdweb-dev/contracts/extension/interface/IMintableERC1155.sol";
import "@thirdweb-dev/contracts/extension/Multicall.sol";
contract Contract is ERC1155, IMintableERC1155, Multicall {
constructor(
string memory _name,
string memory _symbol
)
ERC1155(
_name,
_symbol
)
{}
function mintTo(
address to,
uint256 tokenId,
string calldata uri,
uint256 amount
) external override {
// Your custom implementation here
}
}