Skip to main content

ERC20Mintable

Functionality available for contracts that implement the IERC20 and IMintableERC20 interfaces.

Allows the minting of new tokens into the contract.

Mint​

Mint tokens to the connected wallet.

var data = await contract.ERC20.Mint("{{amount}}");
Configuration

amount​

The amount of tokens to mint.

Must be a string.

MintTo​

The same as mint, but allows you to specify the address to mint the tokens to.

var data = await contract.ERC20.MintTo("{{wallet_address}}", "{{amount}}");
Configuration

to​

The wallet address to mint the tokens to.

Must be a string.

amount​

The number of tokens to mint.

Must be a string.