ILazyMint
Thirdweb's LazyMint
is a contract extension for any base NFT contract. It lets you 'lazy mint' any number of NFTs at once. Here, 'lazy mint' means defining the metadata for particular tokenIds of your NFT contract, without actually minting a non-zero balance of NFTs of those tokenIds.
Methods
lazyMint
Lazy mints a given amount of NFTs.
Parameters
amount
uint256
The number of NFTs to lazy mint.
baseURIForTokens
string
The base URI for the 'n' number of NFTs being lazy minted, where the metadata for each of those NFTs is ${baseURIForTokens}/${tokenId}
.
extraData
bytes
Additional bytes data to be used at the discretion of the consumer of the contract.
Returns
batchId
uint256
A unique integer identifier for the batch of NFTs lazy minted together.
Events
TokensLazyMinted
Emitted when tokens are lazy minted.
Parameters
startTokenId indexed
uint256
undefined
endTokenId
uint256
undefined
baseURI
string
undefined
encryptedBaseURI
bytes
undefined
Last updated