The Coin contract from the Solidity tutorials. sendCoin and coinBalanceOf. One of 83 identical deployments.
Historical Significance
The first token contract most Solidity developers wrote. Predates and inspired the ERC-20 standard.
Key Facts
Description
The simplest token example from the early Solidity tutorials. Implements sendCoin (transfer with balance check and event) and coinBalanceOf (balance lookup). No approve/transferFrom, no ERC-20 compatibility. 83 identical deployments of this bytecode exist.
Source Verified
Exact runtime bytecode match. Native C++ solc v0.2.1 (webthree-umbrella v1.1.2), optimizer ON. 83 identical siblings.
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Frontier Era
The initial release of Ethereum. A bare-bones implementation for technical users.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Solidity)
contract Coin {
mapping (address => uint) public coinBalanceOf;
event CoinTransfer(address sender, address receiver, uint amount);
function Coin(uint supply) {
coinBalanceOf[msg.sender] = supply;
}
function sendCoin(address receiver, uint amount) returns(bool sufficient) {
if (coinBalanceOf[msg.sender] < amount) return false;
coinBalanceOf[msg.sender] -= amount;
coinBalanceOf[receiver] += amount;
CoinTransfer(msg.sender, receiver, amount);
return true;
}
}