Erc20.mintBatchTo() method
Mint Tokens To Many Wallets
Example
// Data of the tokens you want to mint
const data = [
{
toAddress: "{{wallet_address}}", // Address to mint tokens to
amount: 0.2, // How many tokens to mint to specified address
},
{
toAddress: "0x...",
amount: 1.4,
},
];
await contract.mintBatchTo(data);
Signature:
mintBatchTo(args: TokenMintInput[]): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
args | TokenMintInput[] |
Returns:
Promise<TransactionResult>
Remarks
Mint tokens to many wallets in one transaction.