โ Blockchain & Smart Contracts (Solidity) learning pathBlockchain & Smart Contracts (Solidity) ยท Module 6 of 10
Tokens: ERC-20 and ERC-721
Create fungible tokens and NFTs.
๐ Key ideas
- ERC-20: fungible tokens with transfer, approve, transferFrom, balanceOf.
- ERC-721: non-fungible tokens with unique token IDs.
- ERC-1155 handles multiple token types in one contract.
- OpenZeppelin provides audited token implementations.
- Metadata for NFTs often lives on IPFS.
๐ก Real-life example: ERC-20 tokens are identical coins; ERC-721 tokens are unique numbered certificates.
ERC-20Fungible token standard
ERC-721NFT standard
OpenZeppelinAudited contract library
AllowanceApproved spending amount