ERC-20 Token Creation
HOW TO CREATE ERC20 TOKEN ON ETHEREUM BLOCKCHAIN
Get MetaMask Wallet
- Install MetaMask extension
- Setup MetaMask account
- Follow instructions given to you
Make sure to keep Private Keys and Passphrase safe!
Reference: https://www.youtube.com/watch?v=RUjOeVk-Sz0
Fund Test Network Ether Account
- Select a network
- By default: Ethereum Mainnet
- For testing: Use Ropsten Test Network
- Copy testnet account address from MetaMask
- Get test Ether on Ropsten Ethereum Faucet
- Paste testnet account address from MetaMask
- Hit ‘Send me test Ether’
Code ERC20 Token
- Connect MetaMask smart chain account to Remix
- 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
- Deploy contract to Ropsten Test Network
- Confirm the transaction in MetaMask
- Click on created transaction link
- Click on contract
- Contract should now be live on the Ethereum Test Network
- Check Token Name / Tracker
- Check Contract Creator
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
Reference: https://www.youtube.com/watch?v=GDq7r1n9zIU