Binance Chain Dev Series: Part II - Issuing BEP2 Token
Tags: blockchain, linux, binance, tutorial
Published: 2020-04-05 16:23:33

| Binance Chain development series     |
| ----------- |
|  [chapter 1:- Setting up a light Binance node](https://dev.to/codaelux/how-to-set-up-a-binance-chain-node-4bb4) |
| [chapter 2:- Issuing a BEP2 token on Binance Chain](https://dev.to/codaelux/binance-chain-series-part-ii-issuing-bep2-token-51a)    |
| chapter 3:- Adding our BEP2 to Binance Dex and Interacting with it using the CLI   |
| chapter 4:-  *Adding token to trust wallet*  |
| chapter 5:- *Setting up a full Binance Chain node*    |
| chapter 6:- *Using the Binance Chain SDK*    |

In the previous chapter, we looked into setting up a light client on the Binance chain blockchain. In this chapter, we will issue a BEP2 token on Binance chain mainnet.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/le29cl1gaqtqjwml4qol.jpeg)

> BEP stands for " Binance Chain evolution proposal" and BEP2  tokens are assets on Binance chain which follow the [BEP2 standard](https://github.com/binance-chain/BEPs/blob/master/BEP2.md)

Binance Chain at the time of writing does not support smart contracts as seen on the Ethereum blockchain, according to the Binance chain community this was an intentional design decision to improve the performance of the system and eliminate having to support unnecessary features.

for more here's an interesting [thread](https://www.reddit.com/r/binance/comments/beng4t/how_can_binance_chain_compete_with_eth_if_binance/) 

## Let's get our hands dirty

There are 3 steps in this chapter:

1) Create a Wallet

2) Connect our wallet to our node using bnbcli 

3) Issue our token

cd into the `node-binary` folder which we downloaded in the [previous chapter](https://dev.to/codaelux/how-to-set-up-a-binance-chain-node-4bb4) 

    cd cli/{network}/{version}/{OS}
    cd cli/prod/0.6.3/linux 
    ./bnbcli

To create a wallet goto [Binance Website](https://www.binance.org/) or [testnet](https://testnet.binance.org/create) for testnet

or we can generate one using the bnbcli

    ./bnbcli keys add binance-series
    
    > Enter a passphrase for your key:
    > Repeat the passphrase:
    

The `binance-series` above is used to specify the alias name of the wallet. you can change this to any name of your preference.

Now we can see our wallet

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/byi8n1iu6oh02yw34hq1.png)

> Keep your Mnemonic and Keystore safe, once compromised you lose all assets in your wallet

To add an already existing wallet  use the  `—recover`

    ./bnbcli keys add binance-series --recover
    > Enter a passphrase for your key
    > Repeat the passphrase
    > Enter your recovery seed phrase

To  Issue a token on the Binance Chain we need to make sure our wallet has a minimum of 500BNB which is the fee collected for issuing a token,  for more details on this click [here](https://docs.binance.org/guides/concepts/fees.html#fix-fee-table)   

To issue our token  "Binance Dev Series" ( BDS) with the supply of 1billion 

    ./bnbcli token issue --token-name "Binance Dev Series" --total-supply 100000000000000000 --symbol BDS --mintable --from binance-series --chain-id Binance-Chain-Tigris --node [https://dataseed5.defibit.io:443](https://dataseed5.defibit.io/) --trust-node

**We have issued our token** 🎉🎉

`—from binance-series`:- from our alias wallet named `binance-series`

`—mintable`:- The token is mintable ( you can remove this if your token requirement dosen't need it).

Always add an 8 decimal after the supply you intend for your token  

**ERROR**: No account with address was found in the state. Are you sure there has been a transaction involving it

if you're getting that error it means you don't have up-to 1BNB in your wallet 

## What's Next?

Next chapter we will  be Adding our BDS token to the Binance Dex, stay tuned