Skip to main content

IERC20

ERC20 interface

see https://github.com/ethereum/EIPs/issues/20

Methods

allowance

function allowance(address owner, address spender) external view returns (uint256)

Parameters

NameTypeDescription
owneraddressundefined
spenderaddressundefined

Returns

NameTypeDescription
_0uint256undefined

approve

function approve(address spender, uint256 value) external nonpayable returns (bool)

Parameters

NameTypeDescription
spenderaddressundefined
valueuint256undefined

Returns

NameTypeDescription
_0boolundefined

balanceOf

function balanceOf(address who) external view returns (uint256)

Parameters

NameTypeDescription
whoaddressundefined

Returns

NameTypeDescription
_0uint256undefined

totalSupply

function totalSupply() external view returns (uint256)

Returns

NameTypeDescription
_0uint256undefined

transfer

function transfer(address to, uint256 value) external nonpayable returns (bool)

Parameters

NameTypeDescription
toaddressundefined
valueuint256undefined

Returns

NameTypeDescription
_0boolundefined

transferFrom

function transferFrom(address from, address to, uint256 value) external nonpayable returns (bool)

Parameters

NameTypeDescription
fromaddressundefined
toaddressundefined
valueuint256undefined

Returns

NameTypeDescription
_0boolundefined

Events

Approval

event Approval(address indexed owner, address indexed spender, uint256 value)

Parameters

NameTypeDescription
owner indexedaddressundefined
spender indexedaddressundefined
valueuint256undefined

Transfer

event Transfer(address indexed from, address indexed to, uint256 value)

Parameters

NameTypeDescription
from indexedaddressundefined
to indexedaddressundefined
valueuint256undefined