Skip to main content

ERC20BatchMintable

Implement IMintableERC20 and Multicall to support minting tokens to multiple addresses in one transaction.

Base Contracts Implementing This Feature

Unlocked Features

By implementing the ERC20 standard, you unlock the following features in the SDK and dashboard:

SDK FeatureDescription
Batch Mint TokensMint tokens to many wallets in a single transaction.

Implementing It Yourself

This section is meant for advanced users who want to write the functionality from scratch.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@thirdweb-dev/contracts/openzeppelin-presets/token/ERC20/ERC20.sol";
import "@thirdweb-dev/contracts/extension/interface/IMintableERC20.sol";
import "@thirdweb-dev/contracts/extension/Multicall.sol";

contract Contract is ERC20, IMintableERC20, Multicall {
constructor(
string memory _name,
string memory _symbol
)
ERC20(
_name,
_symbol
)
{}

function mintTo(address to, uint256 amount) external override {
// Your custom implementation here
}
}