Verified contractPartial
MyToken
Address0xfe4666bd9586cd2b574db95b7a8af55daa705dca
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.11
- Same code
9 more contracts
Details
- Compiler
- solc 0.4.11+commit.68ef5810
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 3,725,370
- Creation transaction
- 0xcd74342d70…3d3acefdcc
- Main copy (most transactions)
- 0xa5761f50…d64dddd4
MyToken.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
pragma solidity ^0.4.11;
contract MyToken {
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
/* Initializes contract with initial supply tokens to the creator of the contract */
function MyToken(
uint256 initialSupply
) {
balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens
}
/* Send coins */
function transfer(address _to, uint256 _value) {
if (balanceOf[msg.sender] < _value) throw; // Check if the sender has enough
if (balanceOf[_to] + _value < balanceOf[_to]) throw; // Check for overflows
balanceOf[msg.sender] -= _value; // Subtract from the sender
balanceOf[_to] += _value; // Add the same to the recipient
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.