EIP20Interface

Overview

License: MIT

interface EIP20Interface

Events 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)

function symbol() external view returns (string memory)

decimals (0x313ce567)

function decimals() external view returns (uint8)

totalSupply (0x18160ddd)

function totalSupply() external view returns (uint256)

Get the total number of tokens in circulation

Return values:

balanceOf (0x70a08231)

function balanceOf(address owner) external view returns (uint256 balance)

Gets the balance of the specified address

Parameters:

transfer (0xa9059cbb)

function transfer(address dst, uint256 amount) external returns (bool success)

Transfer amount tokens from msg.sender to dst

Parameters:

transferFrom (0x23b872dd)

function transferFrom(
    address src,
    address dst,
    uint256 amount
) external returns (bool success)

Transfer amount tokens from src to dst

Parameters:

approve (0x095ea7b3)

function approve(
    address spender,
    uint256 amount
) external returns (bool success)

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:

allowance (0xdd62ed3e)

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

Get the current allowance from owner for spender

Parameters:

Last updated