EIP20Interface
Overview
License: MIT
interface EIP20InterfaceEvents info
Transfer
event Transfer(address indexed from, address indexed to, uint256 amount)Approval
event Approval(address indexed owner, address indexed spender, uint256 amount)Functions info
name (0x06fdde03)
function name() external view returns (string memory)symbol (0x95d89b41)
decimals (0x313ce567)
totalSupply (0x18160ddd)
Get the total number of tokens in circulation
Return values:
[0]
uint256
The supply of tokens
balanceOf (0x70a08231)
Gets the balance of the specified address
Parameters:
owner
address
The address from which the balance will be retrieved
return The balance
transfer (0xa9059cbb)
Transfer amount tokens from msg.sender to dst
Parameters:
dst
address
The address of the destination account
amount
uint256
The number of tokens to transfer
return Whether or not the transfer succeeded
transferFrom (0x23b872dd)
Transfer amount tokens from src to dst
Parameters:
src
address
The address of the source account
dst
address
The address of the destination account
amount
uint256
The number of tokens to transfer
return Whether or not the transfer succeeded
approve (0x095ea7b3)
Approve spender to transfer up to amount from src
This will overwrite the approval amount for spender and is subject to issues noted here
Parameters:
spender
address
The address of the account which may transfer tokens
amount
uint256
The number of tokens that are approved (-1 means infinite)
return Whether or not the approval succeeded
allowance (0xdd62ed3e)
Get the current allowance from owner for spender
Parameters:
owner
address
The address of the account which owns the tokens to be spent
spender
address
The address of the account which may transfer tokens
return The number of tokens allowed to be spent (-1 means infinite)
Last updated