Skip to content
Verified contractPartial

Coin

Address0x222cc49413a0d0c6baef40dba5e4d9f97b361d33
Balance

0 ETH

 

Transactions

11

 

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,092,706
Creation transaction
0xa22284350c…40f9623748

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.