Skip to main content

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

ParameterTypeDescription
tostring
amountAmount

Returns:

Promise<TransactionResult>

Remarks

Mint tokens to a specified address.