Hrc20 token and how to create your token

mxkfz 2021-04-16 20:49:34 阅读数:965

本文一共[544]字,预计阅读时长:1分钟~
hrc20 hrc token create token

HRC20 Token standard

HECO Fully compatible with Ethereum ERC20 standard ,interface and event 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

Please refer to :

openzeppelin-contracts

Create a contract tutorial

1. download MetaMask wallet

Official website address :https://metamask.io

Browser plug-in download ( At home ):https://ext.chrome.360.cn/web...

2. Select the network , Customize RPC

3. fill HECO Internet Information

Network name ( Fill in at will ): Fire coin ecological chain or Huobi ECO Chain

newly added RPC website :https://http-mainnet-node.huo...

chain ID:128

Symbol ( optional ):HT

Block browser URL( optional ): https://hecoinfo.com

4. visit HRC20 Website  https://huofabi.com

版权声明:本文为[mxkfz]所创,转载请带上原文链接,感谢。 https://netfreeman.com/2021/04/20210416195323205j.html