AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Setup binance smart chain metamask11/10/2023 SPDX-License-Identifier: GPL-3.0Ĭreate a new contract declaration called Token. Make sure it is open in the editor.ĭeclare a license and the version of Solidity the token is written in (we’ll be using the latest version 0.8 and above. There are a few prerequisites to coding a BEP-20 token:Īfter coding the token in Remix, you can test, and then deploy it to a public network.įor now, open Remix and create a new Token.sol file under /contracts. You can extend this even more as an exercise to get more familiar with working with tokens. Pause/play the token contract as an emergency stop mechanismįor the purposes of this tutorial, we’ll implement the base BEP-20 proposal and allow minting and burning of tokens.Transfer ownership of the token contract to a different address.Click Add Custom Token and confirm the import and on the main page of Metamask you have a DEL token. All the remaining fields will be filled in automatically. In the Token contact Address field, paste the copied smart contract address. For example, most tokens add the ability to: We need Binance Smart Chain, copy it and go back to the Metamask tab. Most real-world tokens, however, extend this proposal in different ways. I recommend reading through the proposal to familiarize yourself with the required functions. You can take a look at these as outlined in the official BEP-20 proposal. Implementing the BEP-20 Token ProposalĪ BEP-20 token requires certain functions to enable other accounts to interact with it properly. Here’s a good resource on Solidity and one on EVM. This guide assumes prior knowledge of Solidity and EVM. Verifying and publishing your token contract on BscScan.Deploying the token contract using Remix.In this tutorial, we’ll code a sample BEP-20 token by implementing the BEP-20 token standard, deploy it to the Binance Smart Chain testnet using Remix, verify the token source code on BscScan, and, finally, import the deployed token into MetaMask. This makes it possible to build decentralized apps on the Binance Smart Chain using current Ethereum tooling. In fact, the BEP-20 standard is an extension of the ERC – 20 standard on Ethereum. To interact with the BSC blockchain, a token based on the BEP-20 standard, BNB, is required to pay for transactions, just like Ether is used to pay for gas fees in the Ethereum blockchain. This makes it a good candidate for building decentralized applications. The Binance Smart Chain is a programmable blockchain with support for smart contracts and EVM compatibility. ![]() How to create and deploy a BEP-20 token to the Binance smart chainīEP-20 is the token standard of the Binance Smart Chain (BSC). When making transactions, always confirm you are on the correct chain so that the transactions may process properly.Ovie Okeh Follow Programming enthusiast, lover of all things that go beep. Step 4: You have now successfully added BNB to your Metamask wallet click Switch to BNB Smart Chain, and return to the Metamask pop-up. ![]() ![]() Network Name: BNB Smart Chain (previously Binance Smart Chain Mainnet)īlock Explorer URL: (may need to click View Details to expand and see this parameter) Step 3: Confirm that the following information matches that in the next pop-up: When you find it, click Add on the right side of the listing: Because the BNB Chain has become so much more popular in recent years, it should visible on that initial list. Step 2: This will open the following page in your browser. Navigate to the top left of Metamask and click the 'Network' button (highlighted below). Step 1: Open the Metamask browser extension, and if needed, enter your password to unlock your wallet. But, various tokens and some other assets can be bridged to other chains, such as BSC and ETH. Splinterlands operates on the Hive Blockchain, which is not related to BNB Smart Chain or any sort of Ethereum fork. To move forward, you will need to have already installed the MetaMask browser extension. Build N Build Chain aka BNB Chain, one of the most popular blockchains in the world, dedicates to delivering its core infrastructure necessary for future. This article will guide you on how to setup a BNB Smart Chain wallet in Metamask.
0 Comments
Read More
Leave a Reply. |