Create a BEP20 Token on Binance Smart Chain Tutorial

Create a BEP20 Token on Binance Smart Chain Tutorial

blockchaincreation@gmail.com

Create a BEP20 Token on Binance Smart Chain Tutorial

Create a BEP20 Token on Binance Smart Chain Tutorial

In this video we will create a BEP20 token on the Binance Smart Chain. It's a great way to write your first smart contract with Solidity.

BEP-20 is a token standard on Binance Smart Chain that extends ERC-20, the most common Ethereum token standard. You can think of it as a blueprint for tokens that defines how they can be spent, who can spend them, and other rules for their usage. Due to its similarity to Binance Chain’s BEP-2 and Ethereum’s ERC-20, it’s compatible with both.

BEP-20 was conceived as a technical specification for Binance Smart Chain, with the goal of providing a flexible format for developers to launch a range of different tokens. These could represent anything from shares in a business to dollars stored in a bank vault (i.e., a stablecoin).

Of course, one could equally create a native asset as a BEP-20 token, or even peg tokens from other blockchains to make them usable on Binance Smart Chain. This is what’s done with “Peggy” coins, which are essentially BEP-20 versions of other crypto assets (such as LINK or XRP).

Like BEP-2 tokens on Binance Chain, BEP-20 token transfers are fuelled with BNB. This provides an incentive for validators to include the transactions in the blockchain, as they’ll collect the BNB as a fee for their troubles.

You may know that Binance Smart Chain was envisioned as something of an extension to Binance Chain. With dual chain architecture, both chains are complementary – Binance Smart Chain caters to decentralized applications without congesting the original chain, which is optimized for ultra-fast trading.

Because of this architecture, heavy emphasis was placed on cross-chain compatibility. For that reason, BEP-2 tokens can be swapped for their BEP-20 equivalent. The easiest way to do so is perhaps via the Binance Chain Wallet extension, though more methods will undoubtedly emerge over time.

For a more detailed look at the BEP-20 standard, be sure to check out the draft proposal on GitHub. https://github.com/binance-chain/BEPs/blob/master/BEP20.md

It's a great way to write your first smart contract with Solidity, the programming language for Blockchain.

We will use Remix, an online code editor for Solidity. You don't need to install anything on your computer. Everything will be in your browser.


Source : Stack

@ShisAngMoeBie


https://stackoverflow.com/questions/66605720/how-to-make-bep20-token

How do one create own binance smart chain token I found this example https://github.com/binance-chain/bsc-genesis-contract/blob/master/contracts/bep20_template/BEP20Token.template


(I see that this is a solidity example, so any tutorial how to compile it?)

Share Improve this question Follow

asked

Mar 12 at 18:58

user2950593

6,598●1212 gold badges●5454 silver badges●103103 bronze badges

2 Answers

order by

votes

Up vote

0

Down vote

The most used Solidity IDE is Remix. It has an online version or you can download it for desktop.


Solidity is compiled to an interpreter code called simply "bytecode". It's available as an NPM (node package manager) package, Docker image or executable binary. You can read more about it in the documentation.


The latest version is 0.8.2 and since your example uses 0.5.16, I recommend upgrading the source code to use the latest version (or at least any 0.8.x). It has slightly different syntax in some cases, and some functions are going to be deprecated, but it also has features like automatic prevention of integer overflow, safer transfers (using 23k gas limit for transfer so there's smaller risk of reentrancy attack), etc.


Deployment of the BEP token is explained on the Binance docs. Basically, you submit a BSC transaction that doesn't have a receiver and contains the token bytecode.


Share Improve this answer Follow

answered

Mar 15 at 19:39

Petr Hejda

7,382●66 gold badges●2727 silver badges●4343 bronze badges

Up vote

0

Down vote

I'm about to try this too. Here is a video showing the way :)

youtube.com/watch?v=CVIGU4UZExc


blockchaincreation@gmail.com


🦉 🐦

Report Page