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