Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

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

Shulou Source: shulou.com Published: 2022-06-01 02:22:07 10月05日 Update

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!

Tags: Standard content token ether event address quantity learning function upper limit balance scenario that is account developer idea total situation interface article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL vpn Huawei Shulou Technology OPPO Reno