EIP20Interface
contract EIP20Interface
Reference
Events
Approval
event Approval(address _owner, address _spender, uint256 _value)- Parameters:
_owner- address_spender- address_value- uint256
Transfer
event Transfer(address _from, address _to, uint256 _value)- Parameters:
_from- address_to- address_value- uint256
Functions
allowance
abstract function allowance(address _owner, address _spender) public view returns (uint256)- Parameters:
_owner- The address of the account owning tokens_spender- The address of the account able to transfer the tokens- Returns:
- Amount of remaining tokens allowed to spent
approve
abstract function approve(address _spender, uint256 _value) public returns (bool)`msg.sender` approves `_spender` to spend `_value` tokens.
- Parameters:
_spender- The address of the account able to transfer the tokens_value- The amount of tokens to be approved for transfer- Returns:
- Whether the approval was successful or not
balanceOf
abstract function balanceOf(address _owner) public view returns (uint256)- Parameters:
_owner- The address from which the balance will be retrieved- Returns:
- The balance
transfer
abstract function transfer(address _to, uint256 _value) public returns (bool)Send `_value` token to `_to` from `msg.sender`.
- Parameters:
_to- The address of the recipient_value- The amount of token to be transferred- Returns:
- Whether the transfer was successful or not
transferFrom
abstract function transferFrom(address _from, address _to, uint256 _value) public returns (bool)Send `_value` token to `_to` from `_from` on the condition it is approved by `_from`.
- Parameters:
_from- The address of the sender_to- The address of the recipient_value- The amount of token to be transferred- Returns:
- Whether the transfer was successful or not
