当前位置:网站首页>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.
边栏推荐
猜你喜欢
Basic using MySQL database
嵌入式软件组件经典架构与存储器分类
[Star Project] Little Hat Plane Battle (9)
机器学习(第一章)—— 特征工程
孙宇晨式“溢价逻辑”:不局限眼前,为全人类的“星辰大海”大胆下注
LyScript 实现对内存堆栈扫描
多态详细讲解(简单实现买票系统模拟,覆盖/重定义,多态原理,虚表)
开源一夏 | 教你快速实现“基于Docker快速构建基于Prometheus的MySQL监控系统”
What is the relationship between The Matrix and 6G?
type="module" you know, but type="importmap" you know
随机推荐
numpy
Enter the SQL Client to create the table, in another node into the SQL Client queries
成为优秀架构师必备技能:怎样才能画出让所有人赞不绝口的系统架构图?秘诀是什么?快来打开这篇文章看看吧!...
MATLAB程序设计与应用 2.7 结构数据与单元数据
This article understands the process from RS485 sensor to IoT gateway to cloud platform
Spinner文字显示不全解决办法
【无标题】函数,对象,方法的区别
Leecode-SQL 1667. 修复表中的名字
VL53L0X V2 laser ranging sensor collects distance data serial output
Why is the new earth blurred, in-depth analysis of white balls, viewing pictures, and downloading problems
OS层面包重组失败过高,数据库层面gc lost 频繁
Basic using MySQL database
MySQL数据库高级使用
消费者认可度较高 地理标志农产品为啥“香”
巴比特 | 元宇宙每日必读:玩家离场,平台关停,数字藏品市场正逐渐降温,行业的未来究竟在哪里?...
Web Server 设置缓存响应字段的一些推荐方案
ScrollView嵌套RecyclerView滚动冲突
Question G: Word Analysis ← Questions for the second provincial competition of the 11th Blue Bridge Cup Competition
DOM对象能干什么?
Interview Blitz 71: What's the difference between GET and POST?