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