IERC20Minimal

Git Source

Interface for the ERC20 token standard with minimal functionality

Functions

balanceOf

Returns the balance of a token for a specific account

function balanceOf(address account) external view returns (uint256);

Parameters

NameTypeDescription
accountaddressThe address of the account to query

Returns

NameTypeDescription
<none>uint256The balance of tokens held by the account

transfer

Transfers a specified amount of tokens from the caller’s account to a recipient’s account

function transfer(address recipient, uint256 amount) external returns (bool);

Parameters

NameTypeDescription
recipientaddressThe address of the recipient
amountuint256The amount of tokens to transfer

Returns

NameTypeDescription
<none>boolTrue if the transfer was successful, False otherwise

transferFrom

Transfers a specified amount of tokens from a sender’s account to a recipient’s account

function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

Parameters

NameTypeDescription
senderaddressThe address of the sender
recipientaddressThe address of the recipient
amountuint256The amount of tokens to transfer

Returns

NameTypeDescription
<none>boolTrue if the transfer was successful, False otherwise