โ† Blockchain & Smart Contracts (Solidity) learning path
Blockchain & Smart Contracts (Solidity) ยท Module 6 of 10

Tokens: ERC-20 and ERC-721

Create fungible tokens and NFTs.

๐Ÿ“– Key ideas

  1. ERC-20: fungible tokens with transfer, approve, transferFrom, balanceOf.
  2. ERC-721: non-fungible tokens with unique token IDs.
  3. ERC-1155 handles multiple token types in one contract.
  4. OpenZeppelin provides audited token implementations.
  5. 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