Loading video player...
In this video, you'll get a complete hands-on walkthrough of building and deploying your own ERC-20 token contract from scratch using Solidity and the Hardhat framework. You'll start by understanding what makes a token ERC-20 compatible — the 6 required functions and 2 required events — then define the interface, write the full contract logic including mint and burn, and finally deploy it to a local Hardhat blockchain network. By the end of this video, you will be able to: ✅ Define an ERC-20 interface in Solidity ✅ Write a complete ERC-20 token contract with all 6 required functions ✅ Implement mint and burn functionality ✅ Write a Hardhat Ignition deployment script ✅ Deploy your token contract to a local blockchain network Whether you're just getting started with Web3 development or want to solidify your understanding of the ERC-20 standard, this tutorial covers everything you need. 🔗 Source & Reference: https://solidity-by-example.org 👨💻 For Developers | Blockchain Beginners Welcome 📌 Chapters: 00:00 Introduction & What Makes a Token ERC-20 Compatible 00:50 IERC20: Defining an ERC20 interface 02:20 SPDX-License Identifier & pragma solidity 02:55 event Transfer & event Approval 03:35 Declaring Six Required Functions & Its Explanations 06:00 Writing the ERC20 Contract — State Variables & Constructor 09:30 Implementing totalSupply, balanceOf & transfer 10:30 Implementing transfer 12:42 Implementing allowance 13:25 Implementing approve 14:45 Implementing transferFrom 17:10 Implementing internal _mint 18:00 Implementing internal _burn 18:50 Summarize ERC20 implementation 19:15 Invoking internal functions _mint & _burn 21:10 Hardhat compile contracts (IERC20 & ERC20) 21:30 Creating Hardhat Ignition Deployment Script 25:00 Deploying to local in memory blockchain network 26:15 After deployment check (ignition/deployments) 27:00 Deploying to local hardhat network 28:20 Verifying deployment (ignition/deployments/deployed_addresses.json) 👍 If you found this helpful, LIKE this video, SHARE it with your network, and SUBSCRIBE to the channel so you never miss a new tutorial! Don't forget to hit the 🔔 bell icon to get notified every time we drop new Solidity & Web3 content! #solidity #erc20 #ethereum #smartcontracts #web3 #defi #hardhat #blockchaindevelopment #learnsolidity #web3development #ethereumdevelopment #soliditytutorial #blockchaintutorial