ERC721LazyMintable
Functionality available for contracts that implement the
IERC721
and
ILazyMint
interfaces.
Allows you to lazy mint new batches of NFTs to be claimed in the future.
By default, the NFT metadata is uploaded and pinned to IPFS before lazy-minting. You can override this default behavior by providing an array of URLs as string
s
that point to valid metadata objects.
lazyMint
Define an array of metadata objects that you want to lazy-mint.
// Custom metadata of the NFTs you want to mint.
const metadatas = [
{
name: "Cool NFT #1",
description: "This is a cool NFT",
image: "https://example.com/image.png", // URL, IPFS URI, or File object
// ... Any other metadata you want to include
},
{
name: "Cool NFT #2",
description: "This is a cool NFT",
image: "https://example.com/image.png", // URL, IPFS URI, or File object
// ... Any other metadata you want to include
},
];
const txResult = await contract.erc721.lazyMint(metadatas); // uploads and creates the NFTs on chain