当前位置:网站首页>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.
边栏推荐
- 成为优秀架构师必备技能:怎样才能画出让所有人赞不绝口的系统架构图?秘诀是什么?快来打开这篇文章看看吧!...
- 混动产品谁更吃香,看技术还是看市场?
- oracle计算同、环比
- [华为云在线课程][SQL语法入门][学习笔记]
- Matplotlib
- ScrollView嵌套RecyclerView滚动冲突
- Guys, I have a problem: My source mysql has a table that has been writing to, I use mysql cdc connec
- How to make self-introduction
- MySQL database combat (1)
- 如何改变sys_guid() 返回值类型
猜你喜欢

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

STM32+OLED显示屏制作指针式电子钟

完全背包问题

巴比特 | 元宇宙每日必读:玩家离场,平台关停,数字藏品市场正逐渐降温,行业的未来究竟在哪里?...

苏州大学:从PostgreSQL到TDengine

深度学习经典网络 -- Inception系列(稀疏结构)

How to use outside the PHP command in the container

干货!一种被称为Deformable Butterfly(DeBut)的高度结构化且稀疏的线性变换

Skills required to be a good architect: How to draw a system architecture that everyone will love?What's the secret?Come and open this article to see it!...

numpy
随机推荐
科普大佬说 | 黑客帝国与6G有什么关系?
开源一夏 | 教你快速实现“基于Docker快速构建基于Prometheus的MySQL监控系统”
程序员架构修炼之道:软件架构基本概念和思维
BPMN和DMN基本概念和使用案例
The way of programmer architecture practice: how to design a sustainable evolution system architecture?
分布式事务七种解决方案
Mysql OCP 72 questions
机器学习(第一章)—— 特征工程
一文带你弄懂 CDN 技术的原理
Leecode-SQL 1484. 按日期分组销售产品
[华为云在线课程][SQL语法入门][学习笔记]
苏州大学:从PostgreSQL到TDengine
成为优秀架构师必备技能:怎样才能画出让所有人赞不绝口的系统架构图?秘诀是什么?快来打开这篇文章看看吧!...
历史拉链数据处理有人做过吗
Interview Blitz 71: What's the difference between GET and POST?
MATLAB程序设计与应用 2.6 字符串
3分钟实现内网穿透(基于ngrok实现)
机器学习概述
训练双塔检索模型,可以不用query-doc样本了?明星机构联合发文
机器比人更需要通证