For a token to follow the ERC-20 token standard, it must implement the following API methods and events:
totalSupply()- This method defines the total supply of ERC-20 tokens
function totalSupply() public view override returns (uint256)
- balanceOf(account)` - This method returns the balance of ERC-20 tokens held by a single wallet address
function balanceOf(address _owner) public view returns (uint256 balance)
-
transfer(receipt, amount)` - This method allows for transfers in a certain amount of ERC20 tokens from the total supply to the recipient
-
approve(spender, amount)` - This method permits one address to spend tokens on behalf of another, considering the total supply
function approve(address _spender, uint256 _value) public returns (bool success)
- transferFrom(sender, receipt, amount)` - This method allows one address to send tokens from a sender to a recipient
function transferFrom(address _from, address _to, uint256 _value) public returns (bool success)
- allowance(owner, spender)` - This method checks if a user-approved address has enough balance to send a token to another user.
function allowance(address _owner, address _spender) public view returns (uint256 remaining)
Cloud VPS Hosting
Starting at just $3.24 / month, get virtual servers with top-tier performance.