LazyMintWithTier
The 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
getBaseURICount
Returns the count of batches of NFTs.
Each batch of tokens has an in ID and an associated baseURI
. See {batchIds}.
Returns
_0
uint256
undefined
getBatchIdAtIndex
Returns the ID for the batch of tokens the given tokenId belongs to.
See {getBaseURICount}.
Parameters
_index
uint256
ID of a token.
Returns
_0
uint256
undefined
getMetadataForAllTiers
Returns all metadata for all tiers created on the contract.
Returns
metadataForAllTiers
LazyMintWithTier.TierMetadata[]
undefined
lazyMint
Lets an authorized address lazy mint 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}
.
_tier
string
undefined
_data
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
Parameters
tier indexed
string
undefined
startTokenId indexed
uint256
undefined
endTokenId
uint256
undefined
baseURI
string
undefined
encryptedBaseURI
bytes
undefined
Last updated