ERC-20
Advertising
Overview
Max Total Supply
17,275,967 BM
Holders
5,055 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 2 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
metahashtoken
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-11-30 */ /* version metahashtoken 0.1.4 RC */ pragma solidity ^0.4.18; contract metahashtoken { /* token settings */ string public name; /* token name */ string public symbol; /* token symbol */ uint8 public decimals; /* number of digits after the decimal point */ uint public totalTokens; /* total amount of tokens */ uint public finalyze; /* token management data */ address public ownerContract; /* contract owner */ address public owner; /* owner */ /* arrays */ mapping (address => uint256) public balance; /* array of balance */ mapping (address => mapping (address => uint256)) allowed; /* arrays of allowed transfers */ /* events */ event Burn(address indexed from, uint256 value); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); /* get the total amount of tokens */ function totalSupply() public constant returns (uint256 _totalSupply){ return totalTokens; } /* get the amount of tokens from a particular user */ function balanceOf(address _owner) public constant returns (uint256 _balance){ return balance[_owner]; } /* transfer tokens */ function transfer(address _to, uint256 _value) public returns (bool success) { address addrSender; if (msg.sender == ownerContract){ /* the message was sent by the owner. it means a bounty program */ addrSender = ownerContract; } else { /* transfer between users*/ addrSender = msg.sender; } /* tokens are not enough */ if (balance[addrSender] < _value){ revert(); } /* overflow */ if ((balance[_to] + _value) < balance[_to]){ revert(); } balance[addrSender] -= _value; balance[_to] += _value; Transfer(addrSender, _to, _value); return true; } /* how many tokens were allowed to send */ function allowance(address _owner, address _spender) public constant returns (uint256 remaining) { return allowed[_owner][_spender]; } /* Send tokens from the recipient to the recipient */ function transferFrom(address _from, address _to, uint256 _value) public returns (bool success){ var _allowance = allowed[_from][msg.sender]; /* check of allowed value */ if (_allowance < _value){ revert(); } /* not enough tokens */ if (balance[_from] < _value){ revert(); } balance[_to] += _value; balance[_from] -= _value; allowed[_from][msg.sender] = _allowance - _value; Transfer(_from, _to, _value); return true; } /* allow to send tokens between recipients */ function approve(address _spender, uint256 _value) public returns (bool success){ allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } /* constructor */ function metahashtoken() public { name = 'BITCOMO'; symbol = 'BM'; decimals = 2; owner = msg.sender; totalTokens = 0; /* when creating a token we do not add them */ finalyze = 0; } /* set contract owner */ function setContract(address _ownerContract) public { if (msg.sender == owner){ ownerContract = _ownerContract; } } function setOptions(uint256 tokenCreate) public { /* set the amount, give the tokens to the contract */ if ((msg.sender == ownerContract) && (finalyze == 0)){ totalTokens += tokenCreate; balance[ownerContract] += tokenCreate; } else { revert(); } } function burn(uint256 _value) public returns (bool success) { if (balance[msg.sender] <= _value){ revert(); } balance[msg.sender] -= _value; totalTokens -= _value; Burn(msg.sender, _value); return true; } /* the contract is closed. Either because of the amount reached, or by the deadline. */ function finalyzeContract() public { if (msg.sender != owner){ revert(); } finalyze = 1; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"_totalSupply","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"finalyzeContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"finalyze","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"_balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_ownerContract","type":"address"}],"name":"setContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ownerContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tokenCreate","type":"uint256"}],"name":"setOptions","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
6060604052341561000f57600080fd5b60408051908101604052600781527f424954434f4d4f00000000000000000000000000000000000000000000000000602082015260009080516100569291602001906100d5565b5060408051908101604052600281527f424d0000000000000000000000000000000000000000000000000000000000006020820152600190805161009e9291602001906100d5565b506002805460ff19168117905560068054600160a060020a03191633600160a060020a031617905560006003819055600455610170565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061011657805160ff1916838001178555610143565b82800160010185558215610143579182015b82811115610143578251825591602001919060010190610128565b5061014f929150610153565b5090565b61016d91905b8082111561014f5760008155600101610159565b90565b6108dd8061017f6000396000f3006060604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610100578063095ea7b31461018a57806318160ddd146101c057806323b872dd146101e557806329bc5d0f1461020d578063313ce5671461022257806342966c681461024b578063476c089a1461026157806370a082311461027457806375f890ab146102935780637e1c0c09146102b25780637f74ac15146102c55780638da5cb5b146102f457806395d89b4114610307578063a9059cbb1461031a578063dd62ed3e1461033c578063e1a4474914610361578063e3d670d714610377575b600080fd5b341561010b57600080fd5b610113610396565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561014f578082015183820152602001610137565b50505050905090810190601f16801561017c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561019557600080fd5b6101ac600160a060020a0360043516602435610434565b604051901515815260200160405180910390f35b34156101cb57600080fd5b6101d36104a0565b60405190815260200160405180910390f35b34156101f057600080fd5b6101ac600160a060020a03600435811690602435166044356104a6565b341561021857600080fd5b61022061058f565b005b341561022d57600080fd5b6102356105b1565b60405160ff909116815260200160405180910390f35b341561025657600080fd5b6101ac6004356105ba565b341561026c57600080fd5b6101d3610644565b341561027f57600080fd5b6101d3600160a060020a036004351661064a565b341561029e57600080fd5b610220600160a060020a0360043516610665565b34156102bd57600080fd5b6101d36106a8565b34156102d057600080fd5b6102d86106ae565b604051600160a060020a03909116815260200160405180910390f35b34156102ff57600080fd5b6102d86106bd565b341561031257600080fd5b6101136106cc565b341561032557600080fd5b6101ac600160a060020a0360043516602435610737565b341561034757600080fd5b6101d3600160a060020a0360043581169060243516610824565b341561036c57600080fd5b61022060043561084f565b341561038257600080fd5b6101d3600160a060020a036004351661089f565b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561042c5780601f106104015761010080835404028352916020019161042c565b820191906000526020600020905b81548152906001019060200180831161040f57829003601f168201915b505050505081565b600160a060020a03338116600081815260086020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035490565b600160a060020a03808416600090815260086020908152604080832033909416835292905290812054828110156104dc57600080fd5b600160a060020a0385166000908152600760205260409020548390101561050257600080fd5b600160a060020a03808516600081815260076020908152604080832080548901905589851680845281842080548a9003905560088352818420339096168452949091529081902086850390559091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b60065433600160a060020a039081169116146105aa57600080fd5b6001600455565b60025460ff1681565b600160a060020a0333166000908152600760205260408120548290116105df57600080fd5b600160a060020a03331660008181526007602052604090819020805485900390556003805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a2506001919050565b60045481565b600160a060020a031660009081526007602052604090205490565b60065433600160a060020a03908116911614156106a5576005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b60035481565b600554600160a060020a031681565b600654600160a060020a031681565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561042c5780601f106104015761010080835404028352916020019161042c565b600554600090819033600160a060020a03908116911614156107655750600554600160a060020a0316610768565b50335b600160a060020a0381166000908152600760205260409020548390101561078e57600080fd5b600160a060020a03841660009081526007602052604090205483810110156107b557600080fd5b600160a060020a038082166000818152600760205260408082208054889003905592871680825290839020805487019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a35060019392505050565b600160a060020a03918216600090815260086020908152604080832093909416825291909152205490565b60055433600160a060020a03908116911614801561086d5750600454155b156100fb576003805482019055600554600160a060020a031660009081526007602052604090208054820190556106a5565b600760205260009081526040902054815600a165627a7a72305820ceb936988e29cb10da18bc4c25b3cb5e27b614b7984172b4de058bdbbf7d33350029
Deployed Bytecode
0x6060604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610100578063095ea7b31461018a57806318160ddd146101c057806323b872dd146101e557806329bc5d0f1461020d578063313ce5671461022257806342966c681461024b578063476c089a1461026157806370a082311461027457806375f890ab146102935780637e1c0c09146102b25780637f74ac15146102c55780638da5cb5b146102f457806395d89b4114610307578063a9059cbb1461031a578063dd62ed3e1461033c578063e1a4474914610361578063e3d670d714610377575b600080fd5b341561010b57600080fd5b610113610396565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561014f578082015183820152602001610137565b50505050905090810190601f16801561017c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561019557600080fd5b6101ac600160a060020a0360043516602435610434565b604051901515815260200160405180910390f35b34156101cb57600080fd5b6101d36104a0565b60405190815260200160405180910390f35b34156101f057600080fd5b6101ac600160a060020a03600435811690602435166044356104a6565b341561021857600080fd5b61022061058f565b005b341561022d57600080fd5b6102356105b1565b60405160ff909116815260200160405180910390f35b341561025657600080fd5b6101ac6004356105ba565b341561026c57600080fd5b6101d3610644565b341561027f57600080fd5b6101d3600160a060020a036004351661064a565b341561029e57600080fd5b610220600160a060020a0360043516610665565b34156102bd57600080fd5b6101d36106a8565b34156102d057600080fd5b6102d86106ae565b604051600160a060020a03909116815260200160405180910390f35b34156102ff57600080fd5b6102d86106bd565b341561031257600080fd5b6101136106cc565b341561032557600080fd5b6101ac600160a060020a0360043516602435610737565b341561034757600080fd5b6101d3600160a060020a0360043581169060243516610824565b341561036c57600080fd5b61022060043561084f565b341561038257600080fd5b6101d3600160a060020a036004351661089f565b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561042c5780601f106104015761010080835404028352916020019161042c565b820191906000526020600020905b81548152906001019060200180831161040f57829003601f168201915b505050505081565b600160a060020a03338116600081815260086020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035490565b600160a060020a03808416600090815260086020908152604080832033909416835292905290812054828110156104dc57600080fd5b600160a060020a0385166000908152600760205260409020548390101561050257600080fd5b600160a060020a03808516600081815260076020908152604080832080548901905589851680845281842080548a9003905560088352818420339096168452949091529081902086850390559091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b60065433600160a060020a039081169116146105aa57600080fd5b6001600455565b60025460ff1681565b600160a060020a0333166000908152600760205260408120548290116105df57600080fd5b600160a060020a03331660008181526007602052604090819020805485900390556003805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a2506001919050565b60045481565b600160a060020a031660009081526007602052604090205490565b60065433600160a060020a03908116911614156106a5576005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b60035481565b600554600160a060020a031681565b600654600160a060020a031681565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561042c5780601f106104015761010080835404028352916020019161042c565b600554600090819033600160a060020a03908116911614156107655750600554600160a060020a0316610768565b50335b600160a060020a0381166000908152600760205260409020548390101561078e57600080fd5b600160a060020a03841660009081526007602052604090205483810110156107b557600080fd5b600160a060020a038082166000818152600760205260408082208054889003905592871680825290839020805487019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a35060019392505050565b600160a060020a03918216600090815260086020908152604080832093909416825291909152205490565b60055433600160a060020a03908116911614801561086d5750600454155b156100fb576003805482019055600554600160a060020a031660009081526007602052604090208054820190556106a5565b600760205260009081526040902054815600a165627a7a72305820ceb936988e29cb10da18bc4c25b3cb5e27b614b7984172b4de058bdbbf7d33350029
Swarm Source
bzzr://ceb936988e29cb10da18bc4c25b3cb5e27b614b7984172b4de058bdbbf7d3335
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.