HRC20 token and how to create your token
This article will explain in detail about HRC20 tokens and how to create your tokens. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.
HRC20 Token standard
HECO is fully compatible with the ERC20 standard of Ethernet Fong. Interface and event are as follows:
/ /-
/ / ERC Token Standard # 20 Interface
/ / https://github.com/ethereum/E...
/ /-
Contract ERC20Interface {
Function totalSupply () public constant returns (uint); function balanceOf (address tokenOwner) public constant returns (uint balance); function allowance (address tokenOwner, address spender) public constant returns (uint remaining); function transfer (address to, uint tokens) public returns (bool success); function approve (address spender, uint tokens) public returns (bool success); function transferFrom (address from, address to, uint tokens) public returns (bool success); event Transfer (address indexed from, address indexed to, uint tokens); event Approval (address indexed tokenOwner, address indexed spender, uint tokens)
}
Please refer to the standard:
Eip-20
For implementation, please refer to:
Openzeppelin-contracts
Create a contract tutorial
1. Download MetaMask Wallet
Official website address: https://metamask.io
Download browser plug-in (domestic): https://ext.chrome.360.cn/web...
two。 Select a network and customize the RPC
So much for sharing about HRC20 tokens and how to create your tokens. I hope the above can help you and learn more. If you think the article is good, you can share it for more people to see.