Как сделать токен на binance smart chain
Перейти к содержимому

Как сделать токен на binance smart chain

  • автор:

Как создать токен в сети BSC и пройти бесплатный листинг на DexCoyote

Наверное каждый когда-нибудь задумывался над созданием собственной криптовалюты. Для сбора инвестиций, для благотворительного дела, ну или для того, чтобы увидеть как это всё работает.

Но далеко не каждый готов быть заложником одной экосистемы, писать техническое задание, платить за разработку смарт-контракта программистам или разбираться в коде самостоятельно.

DexCoyote помогает сгенерировать смарт-контракт на базе Binance Smart Chain и сразу же при желании провести листинг на внутреннем Лаунчпаде.

Самое главное: Все услуги Бесплатны!

Продукт зарабатывает на комиссиях с продаж. Если у вашего токена есть продажи — DexCoyote взимает 5% от них. Если продаж нет — всё бесплатно.

Let’s create your own BEP20 Token on Binance Smart Chain(Step-by-Step by using BEP20-Token Template)

Sila Pakdeewong

Hello everyone today I gonna tell you how to create your own BEP20 Token on Binance Smart Chain. Let’s take a look how’s easy it’s.

1.Firstly because of the BEP20 token everything is simply and every token do the same implementation or coding (I’m talking about just normal BEP20 Token, but if you prefer or want to create significantly or want some feature on your token maybe this article maybe not cover about it.) luckily for us because Binance already created the BEP20 Token template for us. Shall we take a look.

Introduction — Binance Chain Docs

A BEP20 token must implement the interface IBEP20 in IBEP20.sol. This is a template contract BEP20Token.template. Users…

And then feel free to spent your time to read more about the Binance Smart Chain BEP20 Token docs for your understanding. Then when you ready let’s download the BEP20Token.templete files

When your download finish you will receive some file like this. Just open it in whatever text editor your have and then copy all of the code in this file.

2.Open Remix — Ethereum IDE on your browser. Then when you opened it will be start at the Home page right ? then you just click New File and then just named it whatever you want.

For this example I will named it just Token.sol like this

Then open the Token.sol or file that you recently created. And then just paste the code that your already copy it from BEP20Token.templete

And then don’t worry about the error. Just find about it (It should be on the line 352 like I’m show to you now) we will modifying it just a little bit to make it work !

In Line 352 to 355 It need a little bit modifying. Let’s see what we need to do at this point.

_name = This’s what you want you token to be named.

_symbol = This’s symbol for you Token (e.g. Bitcoin = BTC, Binance Coins = BNB)

_decimals = decimals for your token

_totalSupply = And this is Total Supply for token that you want to create

In this example l will create my own token with Name is Sila Pakdeewong (V.2) — Token, Symbol is SILAPDW, Decimals is 9, Total Supply is 21,000,000

And then before we go to the next step, I need you scroll up to on top of your file and you will see that we specified that this file will use pragma solidity 0.5.16;

3. Let’s compile our Solidity file (Token.sol)

Remember that recently that I tell you that our contract using pragma solidity 0.5.16; so it’s mean we need to select the compiler for our Solidity to (Version 0.5.16). And then when everything is ready for us let’s compile it and just wait for a little bit

before we go to the next step be sure to set your network on your Metamask to Binance Smart Chain

for someone who don’t set up Binance Smart Chain on your Metamask you can set up your Metamask for Binance Smart Chain by go to Settings

And then go to networks tabs on the left and then add Binance Smart Chain (Mainnet) network like this

Network Name: Smart Chain

ChainID: 56

Symbol: BNB

Block Explorer URL: https://bscscan.com

Same methods for the Binance Smart Chain (Mainnet) but for Testnet they have something's different

Network Name: Smart Chain — Testnet

ChainID: 97

Symbol: BNB

Okay, now your Metamask already support for Binance Smart Chain (depend on your what network you add, but I recommended you to add both Mainnet and Testnet trust me you will use them in feature.)

But for me I’m gonna choosing to Binance Smart Chain — Testnet because I’m just want to create it for this example, I’m not really want to create it on mainnet (and It’s have a little bit BNB to pay for fee if you want to prefer to mainnet . )

before your go to the next step in Testnet it require some BNB from you to pay for fee ! but we’re in the testnet that Binance offer you can Faucet BNB or peggy BEP20 Token to you as much as you want. So what you wating for Let’s go and give some BNB to your self.

Binance Smart Chain Faucet

Edit description

We don’t care about fee because we using Testnet that we can Faucet BNB to you as much as your want ! (Sounds like you will be rich in Testnet right ! LOL, but remember that BNB that you Faucet can’t transfer to mainnet !)”

3. Deploy our Contract to Binance Smart Chain, now our contract is ready for deploy let’s click to Deploy tabs on your left.

And then in environment be sure to select it to Injected Web3 (Because we want to use our metamask to deploy to network that we’re connected on our Metamask)

Just a sec, It should be have popup from Metamask for you to Connect to Remix.ethereum.org (be sure to check information that appear on your metamask everytime when you connect it for your security of your funds) and then if everything it checked just press Connect to allow remix connect with your Metamask.

Then when you’re already connect it, in the account should be appear your Address and your available BNB Balance. And then select your contract that your created and modified it on Step 2, And then just click Deploy.

And then It’s will show you that for this deployment it need some BNB from you to spent for a fee, just review it and then if you sure just Confirm your transaction.

And then just wait for a while, and if your console show like this it’s mean your smart contract and your BEP20 token just recently deployed to Binance Smart Chain.

Let’s go back to Deploy & Run Transactions tabs and copy your BEP20 Token’s contract address that deployed on Binance Smart Chain.

for then next step to view your BEP20 Token information it’s will be depend on what Binance Smart Chain network that you deployed to.

If you deployed your Mainnet you can view your BEP20 Token information on

and if you deployed to testnet like me you can view on

Wow, Congratulation you just deployed first smart contract and BEP20 token. next step let’s see how can you add token on your Metamask.

4. Let’s add your token on your metamask just scroll down and click “Add Token” button

And then paste your BEP20 Token contract address to Token Contract Address, and just a little bit It will automatically appear your Token Symbol and your token Decimals of precision for you. Just click on next

And then WOW ! now you are seeing your first BEP20 that your created by your own.

Congratulation on your first BEP20 Token and Smart Contract deployment to Binance Smart Chain. Can’t wait to see how powerful BEP20 token that you will create in future. And see you in the next article.

Be sure to follow me on Medium for don’t miss any new article from me in the future. (if you want)

Thanks fully for reading until the end of this article. May be I need sorry for my English some word maybe I’m might using not 100 percent correctly or some grammatically feel free to report or suggest me to edit if something wrong.

How To Create and Deploy a Token on the Binance Smart Chain?

Binance Smart Chain

Binance chain was first introduced to the world by Binance in 2019, and Binance has ensured to offer the quickest and most decentralized trading. Binance Smart Chain offers a fully functional decentralized development environment based on cutting-edge Blockchain technology. Additionally, Binance Chain has been designed to facilitate cross-chain compatibility, ensuring users benefit from both chains to the fullest extent possible.

The Binance Chain’s primary goal was to offer a decentralized and extremely quick trading option. This blog provides comprehensive instructions on “How to produce a token” or “ How to deploy a token on binance smart chain”? and “How to create a binance smart chain token”? and how to create a token on binance smart chain.

What is Binance Smart Chain?

Binance smart chain is a chain that runs parallel to the premier blockchain. It was launched almost one and a half years ago. The intention of creating this chain was to integrate smart contracts into the Binance Chain ecosystem while maintaining the high throughput of the Binance Chain.

In addition to the Binance Chain, there is a blockchain called the Binance Smart Chain (BSC) that supports smart contracts. Despite the complete interoperability of the two chains, BSC has the infrastructure necessary to continue operating independently in the unlikely event that Binance Chain ever ceases to exist.

What are the Characteristics of the Binance Smart Chain?

Below are some of the characteristics of the Binance Smart Chain:

1. Unbiased Blockchain

Binance needs a blockchain for the Binance Smart Chain that runs apart from the Binance Chain. By separating both the blockchain, the interruptions brought on by an unreliable blockchain can be avoided. Binance’s choice to split the two networks opened the door for the incorporation of new technology that had either never been utilized before or had been tried in the past but did not produce the required effects.

2. Compatibility With Ethereum Virtual Machine

BSC is also designed to be compatible with the Ethereum Virtual Machine (EVM), which will enable the blockchain to benefit from a variety of features offered by the Ethereum ecosystem as well as the expanding number of decentralized apps running on Ethereum.

3. Native Cross-Chain Communication

Binance made sure to include native cross-chain interoperability in the design of both blockchains. With the comparatively quick Binance DEX on the Binance Smart Chain, tokens on the BSC network can now be switched easily out for other tokens.

4. Cross-Chain Functionality

BSC is ready to address the compatibility problems with its dual-chain architecture, enabling users to transfer assets from one blockchain to another with minimal hassle.

Dual-chain architecture, which was incorporated into the design of BSC, will give consumers a direct trading experience with quick asset transfers and developers the ability to create dApps on the platform that can be easily exported.

What are BEP-20 Tokens?

The BEP-20 tokens represent a variety of digital assets that live on top of the Binance Smart Chain but don’t have their own blockchain (BSC). For the deployment of tokens in all smart contracts on the Binance Smart Chain, BEP-20 has emerged as the de-facto technical standard.

PancakeSwap, a well-known AMM, is the best example of a Binance Smart Chain BEP20 project that has been successful. It was built on the Binance Smart Chain’s base and is currently one of the top decentralized exchanges.

Features

  • Fast Transactions and High Scalability.
  • Low Transaction Fees.
  • Entirely Decentralized Solutions.
  • No Intermediaries.
  • Cross-chain Compatible.

What Is The BEP-20 Token Standard?

The BEP-20 standard, which is comparable to the ERC-20 Ethereum standard, is supported by BSC tokens. It works with both BEP-20 and ERC-20 because they are nearly equivalent.

Token standards guarantee that tokens have the bare minimum capabilities, including the ability to transfer funds, view token ownership, and more. It is significant to remember that BSC tokens support swapping for the BEP-2 compliant normal Binance Chain, and fee payment in Bad news Bears is necessary for on-chain transactions involving these tokens.

How Can You Create a Token on Binance Smart Chain?

The following is the way to create a token on the network:

Step1: Create A New File

Make a new file with the name TokenName.sol. You must write the code for your smart contract after creating your Solidity file. The code provided below can be used as a reference for this stage. Set the Solidity compiler version to the token.sol file version after adding the code.

Step2: Purchasing A Wallet

You must purchase a wallet to store your tokens. You can easily purchase, store, and send tokens through MetaMask, which is one of the most well-liked digital asset management platforms available today. This is a relatively simple step. MetaMask only requires installation and configuration. Throughout the entire procedure, you will receive prompts. Click “Create a wallet” once the installation is complete. The backup seed phrase should be written down and stored safely.

Step3: Link MetaMask To Binance

You must link MetaMask to create tokens on Binance Smart Chain. You will need to set up your wallet first to do this. Select “Settings” from the drop-down menu at the upper right of the MetaMask website. Find the Networks option once you are on the Settings page. To manually add the Binance Smart Chain, click “Add Network” in the top-right corner of the screen. After you save the network, you’ll notice that it has been set to Testnet by default.

Step 4: Visit Binance Smart Chain

Now visit the Binance Smart Chain Faucet and enter your BSC address in the form there. Select the amount you want by clicking the Give me BNB drop-down and then click the button. After that, your money will show up in your Testnet wallet. Now that your first contract has been deployed, you may begin conducting transactions.

How can you deploy a token on Binance Smart Chain?

Following are the steps to deploy a token on the Binance Smart Chain:

Step1: Deploy A Token

Click the icon under the compiler icon to proceed with deployment after a successful compilation. Given that Metamask is being used to deploy, set the environment to Injected web3 and ensure that the Contract drop-down is set to SampleBEP20Token. Now, you are all set to create a token on Binance Smart Chain at this time. When you click the Deploy button, a metamask confirmation popup appears. Click Confirm to send the token out.

Step2: Deployment Testing

The contract information and the logs will show up under the Deployed Contracts area after the transaction has been mined. Deployment testing can be aided by viewing the public methods and variables using the SAMPLEBEP20TOKEN option under Deployed Contracts.

Step3: Transfer Of Tokens

Tokens can be transferred between wallets using the Transfer mechanism. Press the Transfer button after inputting the recipient’s information and the money. To push the transaction, select Confirm in the Metamask box that appears.

Why hire Prolitus?

The original Binance Chain’s functionality is significantly increased by Binance Smart Chain, which effectively bridges the gap between numerous blockchains. The promise of Binance coin staking and Ethereum virtual machine compatibility makes the platform the perfect engine for programmers creating reliable decentralized applications.

To help you concentrate on your business, Prolitus offers end-to-end blockchain protocol development services to both corporations and individuals. Our knowledgeable team has years of expertise in developing customized business solutions.

The Prolitus platform will pay attention to your blockchain demands and provide you with products that last. Our knowledgeable team is accessible 24 hours a day to assist you with every aspect of perfecting your products.

FAQ

What Distinguishes The Binance Chain From The Binance Smart Chain?

Binance Smart Chain employs Proof of Staked Authority(PoSA), while Binance Chain uses Delegated Proof of Stake (DPoS). Users stake their reputations and identities in the Proof of Stake network. Users are encouraged by the algorithm to verify network data after staking some collateral.

How is Binance Smart Chain powered?

Binance Smart Chain operates combinedly on Delegated Proof of Stake (PoS) and Proof of Authority. A subset of the network’s verifiers alternately confirms transactions and creates new blocks with the technique.

What do you mean by creating a token?

Tokens are created through an initial coin offering, or ICO, which is the cryptocurrency equivalent of an IPO. Tokens are created by businesses that work with cryptocurrency and want to raise money. Those who have a stake in the company can purchase these tokens.

Создание собственных токенов стандарта BEP-20 в сети Binance Smart Chain (BSC) при помощи Remix IDE.

Дисклеймер. Вся информация на данной странице предоставлена исключительно для ознакомительных целей. Покупка, продажа и обмен криптовалют подвержены экономическим рискам и не рекомендуются в рамках этой статьи. Код не предназначен для использования в проектах и приведен только для понимания работы токенов.

Binance Smart Chain (BSC) — это одна из многих газоэффективных платформ, которые пользуются все большим спросом с ростом количества самых разных проектов, связанных с криптовалютами и блокчейном.

BSC — блокчейн похожий на Etherium, но также поддерживающий EVM и любые смарт-контракты, работающие на Etherium.

BSC chart

В начале 2022-го года среднее количество транзакций равняется 6 миллионам в день, с максимумом в 16 миллионов.

BEP-20 — стандарт токена расширяющий возможности стандартов ERC-20 и BEP-2, сейчас он используется практически во всех DeFi-проектах. И именно с ним мы будем работать в рамках этой статьи, создав простой токен и развернув его в тестовой сети BSC используя Remix IDE и MetaMask.

Токен и код:

  • Имя: TestBEP20Token
  • Символ: STST
  • Объем: 1.000.000 STST

Для дальнейших действий вам нужен браузер с уже добавленным в него MetaMask, который подключен к тестовой сети BSC.

Установить расширение для удобного вам браузера можно с официального сайта MetaMask, регистрация и создание кошелька интуитивно понятны и имеются все необходимые инструкции.

А вот для подключения к тестовой сети BSC вам нужно найти в верхней части окна MetaMask выпадающее меню со списком сетей и в нём выбрать “Добавить сеть”/”Custom RPC”. После чего заполнить поля следующими значениями и сохранить изменения.

  • Network Name: BSC Testnet
  • New RPC URL: https://data-seed-prebsc-1-s1.binance.org:8545
  • ChainID: 97
  • Symbol: BNB
  • Block Explorer URL: https://explorer.binance.org/smart-testnet

Приступим к созданию.

Remix IDE

2. Создайте новый файл с названием “TestBEP20Token.sol” и скопируйте туда код приведенный выше.

3. Перед развертыванием код необходимо скомпилировать. Нажмите вторую сверху кнопку на левой панели или сочетание клавиш Ctrl+S.

4. В исходном коде мы указали версию Solidity 0.8.4, в компиляторе нужно выбрать ту же.

Компиляция в Remix IDE

5. После компиляции, в случае успеха, перейдите к меню развертывания, щелкнув третью кнопку на панели Ремикса.

6. Выбираем “Injected Web3” в меню “ENVIRONMENT” и свой контракт в “CONTRACT”.

Развертывание контракта в Remix IDE

7. Для оплаты газа вам понадобится BNB, вы можете получить его из крана тестовой сети по адресу https://testnet.binance.org/faucet-smart

8. Нажмите кнопку “Deploy” и подтвердите развертывания в появившемся окне MetaMask.

9. После этого в разделе “Deployed Contracts” появятся лог и подробности контракта.

Развертывание контракта в Remix IDE

10. Нажмите “TestBEP20Token” под контрактами. Теперь вы видите все общедоступные методы и переменные, можно приступить к тестированию.

11. Попробуйте проверить баланс владельца контракта, вы должны увидеть значение равное всему объему токена.

12. Попробуйте перевести токены на другой кошелек при помощи метода “transfer”. Введите адрес получателя и количество токенов с точностью 18 и нажмите кнопку “transfer”. Снова появится окно MetaMask требующее подтверждения транзакции и отображающее сумму к отправке.

Токены в Remix IDE

13. Через несколько минут после подтверждения статус транзакции появится в логах Remix IDE и в обозревателе тестовой сети BSCScan. Проверив баланс еще раз вы увидите, что он уже меньше миллиона, а в кошелёк получателя уже зачислено то количество, которые вы отправили.

Развертывание токенов в основной сети BSC происходит аналогично, но не забывайте, что для этого вам понадобятся BNB для оплаты газа.

Добавим токены в кошелек.

Теперь перейдем к кошельку на который отправляли токены. В окне MetaMask нажмите “Import Tokens” и введите адрес развернутого контракта. Поля с именем и символом должны заполниться автоматически.

На следующем шаге вы уже можете видеть баланс созданных токенов. Щелкните “Add Tokens”, чтобы добавить их в эту учетную запись.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *