Erc20.transferBatch() method
Transfer Tokens To Many Wallets
Example
// Data of the tokens you want to mint
const data = [
{
toAddress: "{{wallet_address}}", // Address to mint tokens to
amount: 100, // How many tokens to mint to specified address
},
{
toAddress: "0x...",
amount: 100,
},
];
await contract.erc20.transferBatch(data);
Signature:
transferBatch(args: TokenMintInput[]): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
args | TokenMintInput[] |
Returns:
Promise<void>
Remarks
Mint tokens from the connected wallet to many wallets