Skip to main content

ERC1155Mintable

ERC1155Mintable allows you to mint new NFTs into your ERC1155 NFT collection contract.

Base Contracts Implementing This Feature

Unlocked Features

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

SDK UsageDescription
Mint NFTMint new NFTs with a quantity you specify.

Implementing It Yourself

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@thirdweb-dev/contracts/eip/ERC1155.sol";
import "@thirdweb-dev/contracts/extension/interface/IMintableERC1155.sol";

contract Contract is ERC1155, IMintableERC1155 {
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
}
}