当前位置:网站首页>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.
边栏推荐
- Binary search tree (search binary tree) simulation implementation (there is a recursive version)
- Web Server 设置缓存响应字段的一些推荐方案
- SAP 电商云 Spartacus UI 的 External Routes 设计明细
- 【无标题】函数,对象,方法的区别
- MySQL数据库基本使用
- 面试突击71:GET 和 POST 有什么区别?
- Guys, I have a problem: My source mysql has a table that has been writing to, I use mysql cdc connec
- Apache Doris系列之:数据模型
- Leecode-SQL 1667. 修复表中的名字
- 机器学习(公式推导与代码实现)--sklearn机器学习库
猜你喜欢

二叉搜索树(搜索二叉树)模拟实现(有递归版本)

使用.NET简单实现一个Redis的高性能克隆版(一)

【二分查找详解外加递归写法】附有全部代码

Cross-chain bridge protocol Nomad suffers hacker attack, losing more than $150 million

How to retrieve IDC research reports?

ETL data cleaning case in MapReduce

Programmers architecture practice way: software architecture basic concepts and thinking

消费者认可度较高 地理标志农产品为啥“香”

混动产品谁更吃香,看技术还是看市场?

混合型界面:对话式UI的未来
随机推荐
How to use outside the PHP command in the container
oracle计算同、环比
How to retrieve IDC research reports?
用于发票处理的 DocuWare,摆脱纸张和数据输入的束缚,自动处理所有收到的发票
【二分查找详解外加递归写法】附有全部代码
go——并发编程
【文件IO的简单实现】
What is the relationship between The Matrix and 6G?
机器学习(第一章)—— 特征工程
关于OPENSSL的问题
complete knapsack problem
[华为云在线课程][SQL语法入门][学习笔记]
build --repot
完全背包问题的思路解析
LyScript 实现对内存堆栈扫描
【JDBC以及内部类的讲解】
玉溪卷烟厂通过正确选择时序数据库 轻松应对超万亿行数据
STM32+OLED显示屏制作指针式电子钟
Matplotlib
鸿蒙第四次