Skip to content
Verified contractPartial

Coin

Address0xc101a02464a33f2842cdedccd9cf3b4c7e7cf173
Balance

0 ETH

 

Transactions

10

 

Compiler

solc 0.1.3

 

Same code

6 more contracts

 

Details

Compiler
solc 0.1.3+commit.028f561d
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
1,188,623
Creation transaction
0x79b6082a04…ec93852d85
Main copy (most transactions)
0x222cc494…7b361d33

Coin.sol

// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract Coin {
    address minter;
    mapping (address => uint) balances;
    event Send(address from, address to, uint value);
    function Coin() {
        minter = msg.sender;
    }
    function mint(address owner, uint amount) {
        if (msg.sender != minter) return;
        balances[owner] += amount;
    }
    function send(address receiver, uint amount) {
        if (balances[msg.sender] < amount) return;
        balances[msg.sender] -= amount;
        balances[receiver] += amount;
        Send(msg.sender, receiver, amount);
    }
    function queryBalance(address addr) constant returns (uint balance) {
        return balances[addr];
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.