Erc20Mintable.to() method
Mint Tokens
Example
const toAddress = "{{wallet_address}}"; // Address of the wallet you want to mint the tokens to
const amount = "1.5"; // The amount of this token you want to mint
await contract.token.mint.to(toAddress, amount);
Signature:
to(to: string, amount: Amount): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
to | string | |
amount | Amount |
Returns:
Promise<TransactionResult>
Remarks
Mint tokens to a specified address.