当前位置:网站首页>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.
边栏推荐
- 机器学习概述
- 袋鼠云思枢:数驹 DTengine,助力企业构建高效的流批一体数据湖计算平台
- This article understands the process from RS485 sensor to IoT gateway to cloud platform
- Binary search tree (search binary tree) simulation implementation (there is a recursive version)
- 通过GBase 8c Platform安装数据库集群时报错
- complete knapsack problem
- 「全球数字经济大会」登陆 N 世界,融云提供通信云服务支持
- 多态详细讲解(简单实现买票系统模拟,覆盖/重定义,多态原理,虚表)
- Polymorphism in detail (simple implementation to buy tickets system simulation, covering/weight definition, principle of polymorphism, virtual table)
- 一文带你弄懂 CDN 技术的原理
猜你喜欢

孙宇晨式“溢价逻辑”:不局限眼前,为全人类的“星辰大海”大胆下注

机器学习概述

With strong network, China mobile to calculate excitation surging energy network construction

月薪没到35K的程序员必须要背的面试八股,我先啃为敬!

Programmers architecture practice way: software architecture basic concepts and thinking

完全背包问题

鸿蒙第四次

3分钟实现内网穿透(基于ngrok实现)

Basic using MySQL database

用于发票处理的 DocuWare,摆脱纸张和数据输入的束缚,自动处理所有收到的发票
随机推荐
被审稿人吐槽没有novelty!深度学习方向怎么找创新点?
4 g acquisition ModbusTCP turn JSON MQTT cloud platform
Activiti产生的背景和作用
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!...
成对连接点云分割
Matplotlib
Pixel mobile phone system
[Star Project] Little Hat Plane Battle (9)
ETL data cleaning case in MapReduce
numpy
深入解析分布式文件系统的一致性的实现
面试官:工作两年了,这么简单的算法题你都不会?
苏州大学:从PostgreSQL到TDengine
历史拉链数据处理有人做过吗
ARIMA实现(亲测可用)
Regulation action for one hundred days during the summer, more than 700 traffic safety hidden dangers were thrown out
Mysql OCP 74 questions
通过GBase 8c Platform安装数据库集群时报错
How to use outside the PHP command in the container
数字藏品和ICP