Skip to content
Verified contractPartial

Coin

Address0xd19a4dc3b8ec53dec6c61edf04da475da2a53c0f
Balance

0 ETH

 

Transactions

5

 

Compiler

solc 0.1.7

 

Same code

3 more contracts

 

Details

Compiler
solc 0.1.7+commit.b4e666cc
Language
solidity
Optimization
Yes, 200 runs
License
Not stated
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
1,021,563
Creation transaction
0xd53298c222…5cd3e8da40

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 send(address receiver, uint amount) {
        if (balances[msg.sender] < amount) return;
        balances[msg.sender] -= amount;
        balances[receiver] += amount;
        Send(msg.sender, receiver, amount);
    }
    function mint(address owner, uint amount) {
        if (msg.sender != minter) return;
        balances[owner] += 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.