Erc1155Mintable.additionalSupplyTo() method
Increase the supply of an existing NFT and mint it to a given wallet address
Example
// 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,
);
Signature:
additionalSupplyTo(to: string, tokenId: BigNumberish, additionalSupply: BigNumberish): Promise<TransactionResultWithId<NFT>>;
Parameters
Parameter | Type | Description |
---|---|---|
to | string | the address to mint to |
tokenId | BigNumberish | the token id of the NFT to increase supply of |
additionalSupply | BigNumberish | the additional amount to mint |
Returns:
Promise<TransactionResultWithId<NFT>>