Skip to main content

ERC20BatchMintable

Functionality available for contracts that implement the ERC20, ERC20Mintable, and Multicall extensions.

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

mint_batch_to

Mint tokens to many wallets in one transaction.

from thirdweb.types.currency import TokenAmount

# Data of the tokens you want to mint
args = [
TokenAmount("0x7fDae677aA6f94Edff9872C4b91D26407709c790", 1),
TokenAmount("0x7fDae677aA6f94Edff9872C4b91D26407709c790", 2),
]

contract.erc20.mint_batch_to(args)
Configuration

args

A List of TokenAmount objects containing the following properties:

class TokenAmount:
to_address: str
amount: Price
contract.erc20.mint_batch_to(
[
TokenAmount("{{wallet_address}}", 0.2),
TokenAmount("0x...", 1.4),
]
)