Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the contents of the Yi Tai Fang pass standard ERC20?

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "what are the contents of the ethernet pass standard ERC20". The explanation content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what are the contents of the ethernet pass standard ERC20?"

The content of ERC-20 standard

The following function interfaces are defined in ERC-20 standard:

TotalSupply (): returns the total amount of token supply

BalanceOf (address _ owner): returns the account balance of _ owner

Transfer (address _ to,uint256 _ value): transfer the number of tokens of _ value to the address _ to and trigger the transfer event

TransferFrom (address _ from,address _ to,uint256_value): transfers the token of the number of _ value in the address _ from to the address _ to and triggers the transfer event

Approve (address _ spender,uint256 _ value): allows _ spender to withdraw tokens of limit _ value

Allowance (address _ owner,address _ spender): returns the maximum number of tokens that _ spender can withdraw from _ owner

The above functions trigger the following events:

Transfer (address indexed _ from,address indexed _ to,uint256 _ value): triggered every time a token transfer is made

Approval (address indexed _ owner,address indexed _ spender,uint256 _ value): calling the approve () method will trigger this event

ERC-20 was proposed in 2015 and formally implemented in September 2017. This is a good starting point for token standardization. However, the developer community has noticed that it has some flaws and loopholes, in addition, there are some scenarios it is not well satisfied. Therefore, other ERC standards have been proposed one after another.

Thank you for your reading, the above is the content of the Ethernet Square pass Standard ERC20, after the study of this article, I believe you have a deeper understanding of what the content of the Ethernet Square pass Standard ERC20 has, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report