ERC20
Overview
License: Apache 2.0
abstract contract ERC20 is IERC20State variables info
totalSupply (0x18160ddd)
uint256 totalSupplyReturns the total supply of the token.
Return values:
[0]
uint256
Number of issued units.
Functions info
transfer (0xa9059cbb)
function transfer(
address to,
uint256 value
) external override returns (bool success)Transfers token from holder to another address.
Parameters:
to
address
Address to send tokens to.
value
uint256
Number of token units to send.
Return values:
success
bool
Bool the transaction was successful.
transferFrom (0x23b872dd)
Allows spender to transfer tokens from the holder.
Parameters:
from
address
Address of the token holder.
to
address
Address to send tokens to.
value
uint256
Number of units to transfer.
Return values:
success
bool
Bool the transaction was successful.
approve (0x095ea7b3)
Allows a holder to approve a spender.
Parameters:
spender
address
Address of the token spender.
value
uint256
Number of units to be approved.
Return values:
success
bool
Bool the transaction was successful.
balanceOf (0x70a08231)
allowance (0xdd62ed3e)
Returns token allowance of an address to another address.
Parameters:
owner
address
Address of token hodler.
spender
address
Address of the token spender.
Return values:
[0]
uint256
Number of allowed units.
Last updated