Tutorial
ERC20 Fundamentals
14 steps
In this tutorial, we’ll be deep diving into the technical components of what makes a smart contract ERC20 compliant. In particular, we’ll be looking at the mandatory functions and events that every ERC20 token consists of. We’ll also be interacting with two ERC20 smart contracts - one with basic ERC20 functionality and the other with customized functionalities.
Helpful prior knowledge
Solidity
Learning Outcomes
By the end of this tutorial, you will be able to:
- Describe the mandatory functions and events that make up an ERC20 compliant smart contract
- Create and deploy your own ERC20 token
- Add custom functionality to OpenZeppelin’s ERC20 smart contract
Tutorial Steps
Total steps: 14
-
Step 1: Recap of ERC20 Components
-
Step 2: Inspecting OpenZeppelin’s ERC20.sol
-
Step 3: ERC20 Interface
-
Step 4: totalSupply()
-
Step 5: balanceOf()
-
Step 6: transfer()
-
Step 7: approve()
-
Step 8: transferFrom()
-
Step 9: allowance()
-
Step 10: Transfer & Approval
-
Step 11: Creating an ERC20 Token
-
Step 12: Deploying & Interacting with the ERC20 Token
-
Step 13: Preparing Project Directory
-
Step 14: Creating an Advanced ERC20 Smart Contract
Find articles to support you through your journey or chat with our support team.
Help Center