typescript-sdk

Home > @3rdweb/sdk > TokenModule > mintBatchTo

TokenModule.mintBatchTo() method

Mint Tokens To Many Wallets

Signature:

mintBatchTo(args: ITokenMintArgs[]): Promise<void>;

Parameters

Parameter Type Description
args ITokenMintArgs[]  

Returns:

Promise<void>

Remarks

Mint tokens to many different wallets

Example

// Data of the tokens you want to mint
const data = [
  {
    address: "", // Address to mint tokens to
    amount: 100, // How many tokens to mint to specified address
  },
 {
   address: "0x...",
   amount: 100,
 }
]

await module.mintBatchTo(data);