Skip to main content

ERC20Mintable

Functionality available for contracts that implement the ERC20 and ERC20Mintable extensions.

Allows the minting of new tokens into the contract.

mint​

Mint tokens to the connected wallet.

amount = 100

receipt = contract.erc20.mint(amount)
Configuration

amount​

The amount of tokens to mint.

Must be a float.

tx_result = contract.erc20.mint(
1.5,
)

mint_to​

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

address = "0x7fDae677aA6f94Edff9872C4b91D26407709c790"
amount = 100

receipt = contract.erc20.mint_to(address, amount)
Configuration

to​

The wallet address to mint the tokens to.

Must be a string.

tx_result = contract.erc20.mint_to(
"{{wallet_address}}",
1.5
)

amount​

The number of tokens to mint.

Must be a float.

tx_result = contract.erc20.mint_to(
"{{wallet_address}}",
1.5
)