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.
- React
- Javascript
- Python
- Go
- Unity
// 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// 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 Javascript SDK DocumentationThis feature is missing a code snippet or might not be supported yet.
Check the Python SDK documentation for more information.
Reach out on Discord for further assistance!
View Python SDK DocumentationThis feature is missing a code snippet or might not be supported yet.
Check the Go SDK documentation for more information.
Reach out on Discord for further assistance!
View Go SDK Documentation// Batch minting in Unity is coming soon. Reach out to us in Discord if you need this feature!