Increase the supply of an existing NFT and mint it to a given wallet address
Rest
...args: [to: string, tokenId: BigNumberish, additionalSupply: BigNumberish]// Address of the wallet you want to mint the NFT to
const toAddress = "{{wallet_address}}"
const tokenId = 0;
const additionalSupply = 1000;
const tx = await contract.edition.mint.additionalSupplyTo(toAddress, tokenId, additionalSupply);
Rest
...args: [to: string, tokenId: BigNumberish, additionalSupply: BigNumberish]Batch mint Tokens to many addresses
Private
contractPrivate
erc1155Private
storageMint an NFT with a limited supply
Rest
...args: [to: string, metadataWithSupply: { Mint an NFT with a limited supply to a specified wallet.
// Address of the wallet you want to mint the NFT to
const toAddress = "{{wallet_address}}"
// Custom metadata of the NFT, note that you can fully customize this metadata with other properties.
const metadata = {
name: "Cool NFT",
description: "This is a cool NFT",
image: fs.readFileSync("path/to/image.png"), // This can be an image url or file
}
const metadataWithSupply = {
metadata,
supply: 1000, // The number of this NFT you want to mint
}
const tx = await contract.edition.mint.to(toAddress, metadataWithSupply);
const receipt = tx.receipt; // the transaction receipt
const tokenId = tx.id; // the id of the NFT minted
const nft = await tx.data(); // (optional) fetch details of minted NFT
Rest
...args: [to: string, metadataWithSupply: { Private
detectUse contract.erc1155.mint.prepare(...args)
instead
Generated using TypeDoc
Mint ERC1155 NFTs
Remarks
NFT minting functionality that handles IPFS storage for you.
Example