Let's create our own Crypto coin, easy and in just a few minutes (no coding knowledge).

Let's create our own Crypto coin, easy and in just a few minutes (no coding knowledge).

Let's create our own Crypto coin, easy and in just a few minutes (no coding knowledge).

Hello everyone who stumbled upon and came to read. I’ve been away from writing a blog for a while. Caught up with work, trying this and that, blah blah blah. But now it’s time to come back and write again 💪.

Many people are probably familiar with coins like BTC, ETH, BNB, ADA, SOL, and others. Each of these coins incorporates Blockchain technology and has unique concepts and strengths. As we delve deeper into this industry and start accumulating coins, I couldn’t resist getting involved as well. I wanted to have my own coin (since I couldn’t buy one, I decided to create my own). So, that’s the topic for today’s content 😂.

You need to know

  • To create your own coin, you need to have a Metamask wallet (how to create a wallet).
  • Make sure that your Metamask wallet is connected to the Binance Smart Chain Network.
  • Additionally, it’s recommended to have some BNB coins in your Metamask wallet to cover the Gas fees for creating your coin (how to transfer coins to Metamask).
  • This content explains how to create a coin on the Binance Smart Chain.
  • It is intended for learning purposes and to create a token for educational exploration.

Let’s get started!

  1. Go to GitHub -> https://github.com/OpenZeppelin/openzeppelin-contracts, then click on contracts -> token -> ERC20 and open the file ERC20.sol.

ERC20

  1. Open the website https://remix.ethereum.org/.

  2. Next, in the left-hand sidebar, we will create a new file named bep-20.sol (This is the file where you will write the Smart Contract for your own coin. In this case, we will use the Smart Contract code from OpenZeppelin).

bep-20

  1. Next, let’s write the file -> bep-20.sol together. You can directly copy and paste the code below.
pragma solidity ^0.8.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";

contract MoonMetro is ERC20 {
    constructor(uint256 initialSupply) public ERC20 ("MoonMetro", "MMT") {
        _mint(msg.sender, initialSupply);
    }
}

Let me explain a bit further:

  • Line 3: This is the URL that you copied from Step 1.
  • Line 5: MoonMetro is the full name of the coin you are going to create.
  • Line 6: “MoonMetro” must match the name on line 5, and “MMT” is the coin’s abbreviation that will be used for the token’s name and symbol. You can change the abbreviation according to your preference 😁.
  1. Next, let’s compile the Solidity code. Select the left-hand sidebar and click on the Compile bep-20.sol button.

SolidityCompiler

  1. After the compilation is completed, we will select the ‘Deployment’ menu to review the information before clicking on ‘Deploy’.
  • Environment: Select ‘Injected Web3’.
  • Account: Choose the Metamask account that is connected to the BSC chain.
  • Contract: Select the name of the coin you are about to create.
  • Amount of Coins: In this example, I will create a total of 10,000 coins, so we need to enter 10,000 x 10¹⁸ (add 18 zeroes after 10,000) as the amount.

DeployAndRunTransactions

  1. After clicking the ‘Deploy’ button, the Metamask wallet will prompt you to pay the Gas fee (Gas fee is approximately 3-4 $). Then, click the ‘Confirm’ button to proceed.

MetaMask

  1. After the deployment is completed, you can take the transaction hash and check it on https://bscscan.com/

TransactionHash

TransactionHash2

  1. If you click on the link under ‘Interacted With (To), it will direct you to the newly created coin.

TokenTracker

  1. Click copy to save the Contract Address of your newly created coin.

ContractAddress

  1. Open your Metamask wallet and select the Binance Smart Chain Network. Then, scroll down to the bottom and choose ‘Import Token’.

ImportToken

  1. Enter the Token Contract Address and then click on the ‘Add Custom Token’ button followed by the ‘Import Tokens’ button.

ImportToken2

  1. And there you have it! The coin that you created should now appear in your Metamask wallet. Yeah! 🎉

ImportCoinSucess


At last, we now have our very own coin! 🎉 You can take this coin and use it for various purposes, such as selling it on PancakeSwap, distributing it as a token in games, integrating it into different systems, or anything else, it’s all up to you!

I hope this content has been beneficial to everyone interested. Goodbye! 👋

References:

Related Posts

Awaitable Long Running Producer-Consumer

Awaitable Long Running Producer-Consumer

Normally we use producer-consumer problem to solve certain problems like write buffer, cache buffer or any operation (producer) that needs to entry data into a queue and having another operation (con

read more
Customize the website to display using Tampermonkey

Customize the website to display using Tampermonkey

Many people may feel dissatisfied with certain websites when they browse them, for example:* Disliking intrusive banner advertisements that strain the eyes. * Wishing a website had specific feature

read more
Pass Through Data Over IServiceProvider.CreateScope()

Pass Through Data Over IServiceProvider.CreateScope()

[ASP.NET] In some cases you may encounter the situation that you need to pass through some particular data over a new scope of Service Provider.For instance, when you implement a solution that inte

read more
Write Unit Tests for React Hooks using react-hooks-testing-library

Write Unit Tests for React Hooks using react-hooks-testing-library

Hooks in React are a feature that has drastically changed the way we write React. It's like undergoing plastic surgery in Korea, where some developers love the new look, while others prefer the old o

read more
Scan code with Credential Scanner on Azure DevOps

Scan code with Credential Scanner on Azure DevOps

🥳 Happy New Year 2023! 🥳Wishing everyone a great year ahead!Now, let's get down to business. Today, I'm going to introduce you to a handy tool that checks for leaked passwords, secrets, certifi

read more
Convert interface to enum (for those too lazy to type 'name' in the input form) in TypeScript

Convert interface to enum (for those too lazy to type 'name' in the input form) in TypeScript

![Convert interface to enum cover](/images/posts/transform-interface-as-enum-typescript/transform_interface-as-enum-cover.png)It's a small trick to convert an Interface to an Enum, helping to solve

read more
Utilize WebAssembly in .NET

Utilize WebAssembly in .NET

We heard the WebAssembly quite a while ago but the use case, especially for .NET developers, was still limited. As of the time writing this post, in the last quarter of 2022, there are many new thing

read more