Erc20.mintTo() 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.erc20.mintTo(toAddress, amount);
Signature:
mintTo(receiver: string, amount: Amount): Promise<TransactionResult>;
Parameters
Parameter | Type | Description |
---|---|---|
receiver | string | |
amount | Amount |
Returns:
Promise<TransactionResult>
Remarks
Mint tokens to a specified address.