Skip to main content

ERC721BatchMintable

Enable minting multiple NFTs at once in a single transaction by Implementing ERC721, IMintableERC721, and Multicall.

Base Contracts Implementing This Feature

Unlocked Features

By implementing ERC721BatchMintable, you unlock the following features in the SDK and dashboard:

SDK UsageDescription
Batch Mint NFTsPass 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/ERC721A.sol";
import "@thirdweb-dev/contracts/extension/interface/IMintableERC721.sol";
import "@thirdweb-dev/contracts/extension/Multicall.sol";

contract Contract is ERC721A, IMintableERC721, Multicall {
constructor(
string memory _name,
string memory _symbol
)
ERC721A(
_name,
_symbol
)
{}

function mintTo(address to, string calldata uri) external override returns (uint256) {
// Your custom implementation here
}

}