Skip to main content

Erc20BatchMintable.to() method

Mint Tokens To Many Wallets

Example

// 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.token.mint.batch(data);

Signature:

to(args: TokenMintInput[]): Promise<TransactionResult>;

Parameters

ParameterTypeDescription
argsTokenMintInput[]

Returns:

Promise<TransactionResult>

Remarks

Mint tokens to many wallets in one transaction.