mintAdditionalSupplyToBatch

This extension batches multiple mintAdditionalSupplyToBatch extensions into one single multicall. Keep in mind that there is a limit of how many NFTs you can mint per transaction. This limit varies depends on the network that you are transacting on.

You are recommended to experiment with the number to figure out the best number for your chain of choice.

Example

import { mintAdditionalSupplyToBatch } from "thirdweb/extensions/erc1155";
const transaction = mintAdditionalSupplyToBatch({
contract,
nfts: [
{ tokenId: 0n, supply: 99n, to: account.address },
{ tokenId: 1n, supply: 98n, to: account.address },
{ tokenId: 2n, supply: 97n, to: account.address },
],
});
function mintAdditionalSupplyToBatch(

Parameters

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;