How to Create a Token on the Mazze Blockchain in 1 Minute

Mazze
2 min readMay 3, 2024

--

Tutorial: Short Version

  1. remix.ethereum.org
  2. Create a new workspace ▶ OpenZeppelin — ERC20
  3. MyToken.sol ▶ between {} add:

uint256 initialSupply = 1000 * (10 ** uint256(decimals())); _mint(msg.sender, initialSupply);

4. Solidity Compiler ▶ Advanced Configurations ▶ EVM VERSION: london ▶ Compile MyToken.sol

5. Deploy ▶ Injected Provider — MetaMask ▶ Deploy

Tutorial: Detailed Version

  1. Log into MetaMask, ensuring the Mazze Testnet network is selected and you have tokens to pay the transaction fee.
  2. Visit https://remix.ethereum.org/
    If this is your first time visiting this site, click “Accept” on the initial message, then choose an option from the second pop-up message such as “Learning”, and close the tutorial that appears by clicking the ‘x’ in the corner of the message.
  3. Click on ‘default_workspace’ and select ‘create a new workspace’ from the list.
  4. Under ‘Choose a template’, select ‘OpenZeppelin — ERC20’ and click ‘OK’.
  5. In the left-side list, click on the ‘contracts’ folder and then on ‘MyToken.sol’.
    ‘MyToken.sol’ is the token code in the Solidity language.
  6. In the line “constructor() ERC20(“MyToken”, “MTK”) ERC20Permit(“MyToken”) {}”, replace “MyToken” and the ticker “MTK” with your desired token name and ticker.
  7. At the end of this line, between the curly braces “{}”, add the following lines:

uint256 initialSupply = 1000 * (10 ** uint256(decimals()));
_mint(msg.sender, initialSupply);

8. Go to the third icon on the left (Solidity Compiler).

9. Click on ‘Advanced Configurations’ and select EVM VERSION: london.

10. Press ‘Compile MyToken.sol’.

11. Move to the fourth icon on the left, ‘Deploy’.

12. At the top, for Environment, select ‘Injected Provider — MetaMask’.

13. Click the ‘Deploy’ button, then confirm the transaction that pops up in MetaMask.

After the transaction is completed, you can find the token contract in the console at the bottom and add it to MetaMask to view your tokens.

Creating a token on the Mazze blockchain can be accomplished swiftly and efficiently, as demonstrated in the video and text tutorials provided.

This knowledge empowers you to explore further applications and innovations within the Mazze blockchain ecosystem. Remember, the blockchain technology landscape is constantly evolving, so keep learning and experimenting. Happy token creating!

--

--

Mazze

Mazze is a Layer 1 blockchain that redefines performance through its PoW-based DAG architecture, achieving 40,000 TPS and 1s finality.