Difference between revisions of "Ethereum"
(→Ethereum Tokens) |
(→Ethereum ERC Tokens) |
||
Line 6: | Line 6: | ||
=== ERC20 === | === ERC20 === | ||
− | The ERC20 token is the most commonly used standard. As such, it is the most popular | + | The ERC20 token is the most commonly used standard. As such, it is the most popular token for companies running an [[ICO]]. |
− | + | * The ERC20 token required functions are: | |
+ | Get the total token supply | ||
<code>function totalSupply() public constant returns (uint);</code> | <code>function totalSupply() public constant returns (uint);</code> | ||
+ | |||
<code>function balanceOf(address tokenOwner) public constant returns (uint balance);</code> | <code>function balanceOf(address tokenOwner) public constant returns (uint balance);</code> | ||
+ | |||
<code>function allowance(address tokenOwner, address spender) public constant returns (uint remaining);</code> | <code>function allowance(address tokenOwner, address spender) public constant returns (uint remaining);</code> | ||
+ | |||
<code>function transfer(address to, uint tokens) public returns (bool success);</code> | <code>function transfer(address to, uint tokens) public returns (bool success);</code> | ||
+ | |||
<code>function approve(address spender, uint tokens) public returns (bool success);</code> | <code>function approve(address spender, uint tokens) public returns (bool success);</code> | ||
+ | |||
<code>function transferFrom(address from, address to, uint tokens) public returns (bool success);</code> | <code>function transferFrom(address from, address to, uint tokens) public returns (bool success);</code> | ||
+ | |||
<code>event Transfer(address indexed from, address indexed to, uint tokens);</code> | <code>event Transfer(address indexed from, address indexed to, uint tokens);</code> | ||
+ | |||
<code>event Approval(address indexed tokenOwner, address indexed spender, uint tokens);</code> | <code>event Approval(address indexed tokenOwner, address indexed spender, uint tokens);</code> | ||
} | } | ||
− | |||
− | |||
Examples: | Examples: |
Revision as of 18:10, 13 September 2018
Ethereum is a open-software platform that is operating using blockchain technology co-founded by Vitalik Buterin. Ethereum was released 2015. Ethereum gives a cryptocurrency called "ether" that can be moved from different accounts. While Bitcoin was designed for consumer payments, Ethereum was designed to allow for more complex party interactions called smart contracts.
Ethereum ERC Tokens
An Ethereum based token is a fungible tradable asset that operates on Ethereum's blockchain. The Ethereum Request for Comments (ERC) for tokens are a way of describing a set of functions and rules that the token should posses and follow. The three most common standards can be seen here:
ERC20
The ERC20 token is the most commonly used standard. As such, it is the most popular token for companies running an ICO.
- The ERC20 token required functions are:
Get the total token supply
function totalSupply() public constant returns (uint);
function balanceOf(address tokenOwner) public constant returns (uint balance);
function allowance(address tokenOwner, address spender) public constant returns (uint remaining);
function transfer(address to, uint tokens) public returns (bool success);
function approve(address spender, uint tokens) public returns (bool success);
function transferFrom(address from, address to, uint tokens) public returns (bool success);
event Transfer(address indexed from, address indexed to, uint tokens);
event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
}
Examples:
ERC223
ERC721
See Also
Resources
- Ethereum main site
- Crypto Kitties Viral[1] virtual cat game based on the Etherium Blockchain
- MetaMask Chrome plug in that allows It allows you to run Ethereum dApps right in your browser without running a full Ethereum node