Create your own cryptocurrency on Binance Smart Chain

Blockchain technology is now at such a stage of development that almost anyone can create their own tokens. The Binance Smart Chain platform appeared using this ecosystemoffering possible to create BEP-20 tokens. In this article we will see how to deploy your smart contract in a few simple steps.

Step1: Getting MetaMask

Metamask is a web browser extension used as a secure cryptocurrency wallet and a gateway to interact with different blockchains. Get Metamask

By default the Binance Smart Chain (BSC) network is not available on Metamask, we need to add it:

  1. Open
  2. Connect it to your Metamask wallet
  3. Using the search bar we’ll look for “BSC”
  4. As a result of search we will add the network with ChainID: 56

You can also add it manually, open Metamask, go to Settings > Networks > Add Network

  • Network Name: Binance Smart Chain
  • New RPC URL:
  • ChainID: 56
  • Symbol: BNB
  • Block Explorer URL:

After adding the BSC network to your Metamask, you need to get some BNB to pay the gas fee when you deploy your token (smart contract) in the BSC Mainnet. At the time that I write this article less than $5 we’ll be enough to pay all gas fees and make your crypto live.

If you don’t have account on Binance to by tome BNB, you can register for free

Step2: Custom and deploy your BEP-20 Token

Now it’s time to create your own token end deploy it on the Binance smart Chain, for that you need to write your Smart contract using Solidity language. You can use the exemple below and replace some constants to custom your token:

pragma solidity ^0.8.2;

contract Token {
    mapping(address => uint) public balances;
    mapping(address => mapping(address => uint)) public allowance;
    uint public totalSupply = 100000000 * 10 ** 18;
    string public name = "Yagami";
    string public symbol = "YMI";
    uint public decimals = 18;
    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
    constructor() {
        balances[msg.sender] = totalSupply;
    function balanceOf(address owner) public returns(uint) {
        return balances[owner];
    function transfer(address to, uint value) public returns(bool) {
        require(balanceOf(msg.sender) >= value, 'balance too low');
        balances[to] += value;
        balances[msg.sender] -= value;
       emit Transfer(msg.sender, to, value);
        return true;
    function transferFrom(address from, address to, uint value) public returns(bool) {
        require(balanceOf(from) >= value, 'balance too low');
        require(allowance[from][msg.sender] >= value, 'allowance too low');
        balances[to] += value;
        balances[from] -= value;
        emit Transfer(from, to, value);
        return true;   
    function approve(address spender, uint value) public returns (bool) {
        allowance[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;   

Source: eattheblocks

    1. Open
    2. Using the FILE EXPLORERS, Create inside “/contracts” folder your token contract file “contracts/Token.sol
    3. Open Token.sol and past your smart contract code written with Solidity language.
      If you want to use the contract above remember to edit:
      1. Line6: totalSupply = “__” Quantity of your token. Ex: 10000000
      2. Line7: name = “__” The name you want to give to your token. Ex: “Yagami”
      3. Line8: symbol = __ The symbol you want to give to your token. Ex: “YMI”
      4. Line9:  decimals = __ To custom number of decimals for each unit of your token. Ex:  0.0000…

      You can also custom info messages, lines: 23, 31 and 32

  1. Then open the COMPILER tab and select the compiler version 0.8.2 note that the compiler version need to be same with the version of solidity that you declared in the first line of your token contract. 
  2. After selecting the right version, click on “Compile Token.sol” button
  3. Wait a few seconds until compiling finish, then go to DEPLOY & RUN TRANSACTIONS tab
  4. Select Injected Web3 as ENVIRONMENT and click on Deploy button 🚀

Confirm gas fee… And… Congratulation ! You’ve created your own token ! 🥳

Once your smart contract deployed you’ll see all the functions that allows us to interact with it. Let’s send some of your tokens to your wallet, for that, we’ll use the transfert(), it’s takes two arguments: address of reciever and value (quantity)

  • Click on transfer to open the drap-down.
  • Enter your wallet address and the amount that you want to transfert.
  • Click on transact and pay the gas fee again.
  • After a few seconds you will see the amount that you sent on your Metamask wallet.

Leave a Reply