BEP-20 Token Creation
HOW TO CREATE BEP20 TOKEN ON BINANCE BLOCKCHAIN (BSC)
Learn more about the binance smart chain
https://www.binance.com/en/blog/421499824684900933/Binance-Smart-Chain-Launches-Today
https://academy.binance.com/en/articles/connecting-metamask-to-binance-smart-chain
https://accounts.binance.com/en/register?ref=22521757
https://bscscan.com/
Get MetaMask Wallet
- Install MetaMask extension
- Setup MetaMask account
- Follow instructions given to you
Make sure to keep Private Keys and Passphrase safe!
Create new network in Metamask
- Network Name: Smart Chain
- New RPC URL: https://bsc-dataseed-binance.org/
- Chain ID: 556
- Currency Symbol: BNB
Code ERC20 Token
- Connect MetaMask smart chain account to Remix
- Get BNB token from Binance
- Transfer BNB token into your account
- Use Remix Ethereum IDE
- http://remix.ethereum.org
- Hint: Use Remix in http instead of https
- Create a new file with .sol ending
- Code ERC20 Token using the following template
1 |
|
Make code adjustments
- Change contract name ‘CodeWithJoe’
- Set name of token ‘CodeWithJoe’
- Set symbol of token ‘CWJ’
- Set decimals of token ‘18’
- Set _totalSupply of token ‘100000000000000000000000000’
Compile the file name
- Make sure the compiler version matches
- Make sure MetaMask account is connected to remix
Deploy Token
Confirm Transaction in MetaMask
Verify the smart contract
- Verify the Smart Contract
- Enter the contract address you would like to verify
- Select the Compiler Type ‘Solidity (Single file)’
- Select the Compiler Version
- Select the Open Source License Type
- Click ‘Continue’
- Paste Solidity Contract Code below
- Click ‘Verify and Publish’
- Contract should now be verified on the Ethereum Blockchain
Check if Smart Contract was deployed to the Binance Smart Chain
- Search for Smart Contract on Binance Smart Chain
- Instead of interacting with the smart contract with Ethereum, we need to interact with it with the Binance Token
Reference: https://www.youtube.com/watch?v=BOTXBO6UOY0