Binance Smart Chain MetaMask

Tip

You may encounter a network configuration issue in recent releases of MetaMask, Please go to "Upgrade" section for solution

What is it?

MetaMask was created out of the needs of creating more secure and usable Ethereum-based web sites. In particular, it handles account management and connecting the user to the blockchain. Its supported in Chrome, Brave, and Safari browsers.

Install

Example: Install MetaMask in Brave browser

  • Open Extension Category in Brave: //chrome.google.com/webstore/category/extensionsSearch for MetaMask

Warning

Note: Make sure its offered by metamask.io

Thats it! You have successfully installed MetaMask extension in Brave!

Tip

The workflow is the same for all browsers

  1. Click on the Create a wallet button

2. Create Password of at least 8 characters

  1. Click on Create and then write down your backup phrase.

  1. Select each phrase in order to make sure it is correct then click Confirm.

Congratulations! you have create your MetaMask account!

  1. Add a new network

    • Testnet

      • RPC URLs
      • ChainID: 0x61, 97 in decimal [if 97 doesnt work, try 0x61]
      • Symbol: BNB
      • Block Explorer: //testnet.bscscan.com
    • Mainnet

      • RPC URLs
      • ChainID: 0x38, 56 in decimal [if 56 doesnt work, try 0x38]
      • Symbol: BNB
      • Block Explorer: //bscscan.com
  2. Claim some testnet token to your account Click on your address for copy

  3. Go to faucet page: //testnet.binance.org/faucet-smart, then paste your address in the box and click on Give me BNB

Tip

Please note that you can only claim once every minute


After the transfer transaction is sent, you will see an increase of your balance

Transfer BNB to other Binance Smart Chain address

  1. Log in to your MetaMask

  2. Click on Send button

  3. Copy the receivers address in the box

  4. Input the amount

  5. Go to Advanced Options to modify default gas price when necessary

  6. Confirm your transaction, then click Next

  7. Click Confirm to send your transaction

  8. Wait for your transaction to be included in the new block
  9. Once your transaction is confirmed, check it on block explorer by clicking Details
  10. Click on your account to see "Details''

Verify your transaction in Explorer:

Add BEP20 Tokens

  1. Deploy an ERC20 contract at //remix.ethereum.org/ You can create a new file or import a sample contract: //gist.github.com/HaoyangLiu/3c4dc081b7b5250877e40b82667c8508


  2. Connect your Binance Smart Chain Account to Remix

  3. Select ABCToken contract and compile
  4. Deploy your compiled contract
  5. Adjust Gas Fee for your contract, then confirm your deploy contract


    You can see that there is a new create contract transaction in block explorer

  6. In MetaMask, Click on Add Token

  7. Choose Custom Token and copy the contract address in the box

  8. Click on Add Tokens


    Then you can see change of your balance

Create Multiple Accounts

  1. To create multiple accounts, you click on Profile icon on MetaMask and then click on Create Account

  2. You can then add an account name and click on Create.

  3. Then you can see a new account is created!

Upgrade

Since the release of v8.1.3, MetaMask sometimes displays the warning message "Invalid Custom Network".

To solve this issue, click on "'Settings" and enter Chain ID of Binance Smart Chain network again. If 56 doesnt work, try 0x38.

Video liên quan

Chủ Đề