ERC1155LazyMintable
Implement ERC1155
and LazyMint
to enable batch lazy minting of NFTs in your smart contract.
Base Contracts Implementing This Feature
Unlocked Features
By implementing the ERC1155Mintable contract, you unlock the following features in the SDK and dashboard:
SDK Usage | Description |
---|---|
Lazy Mint Batch | Pass in an array of NFT metadata and lazy-mint them for others to claim. |
Implementing It Yourself
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@thirdweb-dev/contracts/eip/ERC1155.sol";
import "@thirdweb-dev/contracts/extension/LazyMint.sol";
contract Contract is ERC721A, LazyMint {
constructor(
string memory _name,
string memory _symbol
)
ERC721A(
_name,
_symbol
)
{}
function _canLazyMint() internal view override returns (bool) {
// Your custom implementation here
}
}