当前位置:网站首页>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.
边栏推荐
猜你喜欢
图新地球为什么很模糊,白球、看图、下载问题深度剖析
混合型界面:对话式UI的未来
VL53L0X V2 laser ranging sensor collects distance data serial output
for in 和 for of的区别
How to retrieve IDC research reports?
混动产品谁更吃香,看技术还是看市场?
嵌入式软件组件经典架构与存储器分类
Who is more popular for hybrid products, depending on technology or market?
孙宇晨式“溢价逻辑”:不局限眼前,为全人类的“星辰大海”大胆下注
How to use outside the PHP command in the container
随机推荐
用于发票处理的 DocuWare,摆脱纸张和数据输入的束缚,自动处理所有收到的发票
全新的Uber App设计
创建C UDR时,指定的HANDLESNULLS的作用是什么?
GBase 8c与openGauss是什么关系?
Apache Doris系列之:数据模型
Programmers architecture practice way: software architecture basic concepts and thinking
build --repot
谷歌实用插件分享
DOM对象能干什么?
巴比特 | 元宇宙每日必读:玩家离场,平台关停,数字藏品市场正逐渐降温,行业的未来究竟在哪里?...
通过GBase 8c Platform安装数据库集群时报错
QT with OpenGL(Shadow Mapping)(面光源篇)
With strong network, China mobile to calculate excitation surging energy network construction
Pixel mobile phone system
Web Server 设置缓存响应字段的一些推荐方案
【二分查找详解外加递归写法】附有全部代码
MySQL数据库实战(1)
记某社区问答
MATLAB程序设计与应用 2.6 字符串
synchronized