Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

HRC20 token and how to create your token

Shulou Source: shulou.com Published: 2022-06-01 09:22:37 10月04日 Update

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.

Tags: Tokens standards references content articles more knowledge articles yes contracts addresses plug-ins plug-ins download tutorials browsers web quality wallets ethernet help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MySQL NVidia Docker Linux