Verified contractPartial
Token
Address0xa9d4e6da9e2c780ccb01061a7736a162d7b02d6c
- Balance
0 ETH
- Transactions
14
- Compiler
solc 0.1.6
- Same code
8 more contracts
Details
- Compiler
- solc 0.1.6+commit.d41f8b7c
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 511,335
- Creation transaction
- 0xa42c8a7ec2…67254c57e1
Token.sol
// Submitted by EthereumHistory (ethereumhistory.com)
contract Token {
function transfer(address _to, uint256 _value) {
if (balanceOf[msg.sender] < _value) throw;
if (balanceOf[_to] + _value < balanceOf[_to]) throw;
balanceOf[msg.sender] -= _value;
balanceOf[_to] += _value;
Transfer(msg.sender, _to, _value);
}
string public name;
string public symbol;
uint8 public decimals;
mapping (address => uint256) public balanceOf;
event Transfer(address indexed from, address indexed to, uint256 value);
function Token(uint256 initialSupply, string tokenName, string tokenSymbol, uint8 decimalUnits) {
if (initialSupply == 0) initialSupply = 1000000;
balanceOf[msg.sender] = initialSupply;
name = tokenName;
symbol = tokenSymbol;
decimals = decimalUnits;
}
}
Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.