Skip to main content

ERC20BatchMintable

Functionality available for contracts that implement the IERC20, IMintableERC20, and IMulticall interfaces.

Allow you to mint tokens to multiple wallet addresses in one transaction.

mintBatchTo

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.erc20.mintBatchTo(data);
Configuration

args

An array of objects containing the following properties:

  • toAddress - The address to mint tokens to. string.
  • amount - The number of tokens to mint to the specified address. string or number.
await contract.erc20.mintBatchTo(
[
{
toAddress: "{{wallet_address}}", // Address to mint tokens to
amount: 0.2, // How many tokens to mint to specified address
},
{
toAddress: "0x...", // Another address to mint tokens to
amount: 1.4, // How many tokens to mint to specified address
},
],
);