Skip to main content

ERC20 - Batch Mint Tokens

You can utilize these features of the SDK if your contract implements the ERC20BatchMintable interface.

Mint Tokens To Many Wallets

Mint tokens to many wallets in one transaction.

// 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);

This snippet is for v3 of the SDK. Learn how to upgrade.

View in React SDK Documentation