当前位置:网站首页>What is the ERC20 token standard?
What is the ERC20 token standard?
2022-08-03 10:54:00 【Wisdom Haohai】
ERC20 Token Standard (ERC20 Token Standard) is a specification for creating tokens through Ethereum.According to the ERC20 specification, a smart contract can be written to create an "interchangeable token".It is not mandatory, but following this standard, the created token can interact with numerous exchanges, wallets, etc. It is now generally accepted by the industry.
What is an ERC
ERC is the abbreviation of Ethereum Request for Comment, 20 is the number.Request for Comment (RFC) is a series of working memorandums issued by the Internet Engineering Task Force (IETF), which later evolved into standard documents used to document Internet specifications, protocols, processes, etc.For example, the RFC numbers of common Internet protocols are: IP, 791; TCP, 793; SMTP, 2821.
Now, Ethereum has followed the formulation of Bitcoin, and the improvement proposal to the Bitcoin system is now called BIP (Bitcoin Improvement Proposals), followed by a number.The standards related to tokens follow the form of ERC, but they are all included in the EIP (Ethereum Improvement Proposals) sequence. The standard sequence of Ethereum EIP includes Core (core improvement), Networking (network layer improvement), Interface (interface improvement), ERC (Application Layer Comment Collection).
The proposed improvements to Ethereum are available at https://eips.ethereum.org.
What is ERC20
The ERC20 token standard was first proposed by Ethereum developer Fabian Vogelstler in the open source community, and later Ethereum founder Vitalik (known as "Vitalik") wrote the first version of the document,At the time it was called "Standardized Contract APIs" (Standardized_Contract_APIs).
The earliest discussion document is available at: https://github.com/ethereum/EIPs/issues/20.
Following the ERC20 standard, tokens created on Ethereum are universal and can be used by Ethereum and most other applications in the blockchain world.In addition to the official implementation, there are now multiple ERC20-compliant software implementations in the Ethereum network.
Detailed explanation of ERC20 token standard
You can write smart contracts following the ERC20 token standard.The token methods it needs to implement include: optional name, symbol, decimals, and required balanceOf, transfer, transferFrom, approve, and allowance.The event responses it needs to implement include Transfer and Approve (see Figure 1).

Figure 1: ERC20 smart contract programMethods and Events
For the current ERC20 documentation, see:
https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
In addition to ERC20, Ethereum's popular token standard is ERC721.Different from ERC20, ERC721 is a non-fungible token standard (NFT).
ERC20 tokens are interchangeable and homogeneous, while ERC721 tokens are not interchangeable and non-homogeneous; ERC20 tokens are infinitely subdivided, and ERC721 tokens have the smallestThe unit is 1, and subdivisions cannot be split any more.
In June 2018, ERC721 was finally officially accepted by the Ethereum community as the final standard.The popular cryptokitties (cryptokitties) followed the ERC721 standard.
边栏推荐
猜你喜欢

聊天app开发——防炸麦以及节省成本的内容鉴定方法

redis基础知识总结——数据类型(字符串,列表,集合,哈希,集合)

自定义实现乘风破浪的小船

Leecode-SQL 1667. 修复表中的名字

完全背包问题的思路解析

科普大佬说 | 黑客帝国与6G有什么关系?

【LeetCode—第2题 两数之和 代码详解 】附有源码,可直接复制

如何通过DBeaver 连接 TDengine?

Polymorphism in detail (simple implementation to buy tickets system simulation, covering/weight definition, principle of polymorphism, virtual table)

程序员架构修炼之道:如何设计出可持续演进的系统架构?
随机推荐
Mysql OCP 73 questions
BPMN和DMN基本概念和使用案例
成为优秀架构师必备技能:怎样才能画出让所有人赞不绝口的系统架构图?秘诀是什么?快来打开这篇文章看看吧!...
试题G:单词分析 ← 第十一届蓝桥杯大赛第二场省赛赛题
numpy
complete knapsack problem
synchronized
Babbitt | Metaverse daily must-read: Players leave, platforms are shut down, and the digital collection market is gradually cooling down. Where is the future of the industry?...
深度学习经典网络 -- Inception系列(稀疏结构)
LyScript 实现对内存堆栈扫描
QT with OpenGL(HDR)
QT with OpenGL(Shadow Mapping)(面光源篇)
C#+WPF 单元测试项目类高级程序员必知必会
面试一面
Matplotlib
How to make self-introduction
MATLAB programming and application 2.7 Structural data and unit data
gbase在轨道交通一般都采用哪种高可用架构?
Boolean 与numeric 无法互转
【文件IO的简单实现】