Contract Overview
ETH Balance: 0 Ether
No Of Transactions: 2 txns
  Latest 2 txns

TxHash Age From To Value [TxFee]
0x498362e60e90ac018635b585d94b0f6dd7121f59029fd4fe182d6dfbfd6440c566 days 10 hrs ago0x48f27f7ad737ba1ae0153f9ee056f7f07c3a5c7a  IN   0xa55d09e9140b1a47ae560c0b6b19c1fa1a51a68e0.01 Ether0.017907072
0x6fc694bca9e8484a740c10e17b11aee48812a03ef1430382842a1f8c2ced9d0466 days 10 hrs ago0x48f27f7ad737ba1ae0153f9ee056f7f07c3a5c7a  IN    Contract Creation0 Ether0.0035359
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity) Solidity compiler bugs.

Contract Source Code Verified
Contract Name: SnipCoin
Compiler Version: v0.4.16+commit.d7661dd9
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.4;

contract Token {

    /// @return total amount of tokens
    function totalSupply() constant returns (uint256 supply) {}

    /// @param _owner The address from which the balance will be retrieved
    /// @return The balance
    function balanceOf(address _owner) constant returns (uint256 balance) {}

    /// @notice send `_value` token to `_to` from `msg.sender`
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transfer(address _to, uint256 _value) returns (bool success) {}

    /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
    /// @param _from The address of the sender
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}

    /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @param _value The amount of wei to be approved for transfer
    /// @return Whether the approval was successful or not
    function approve(address _spender, uint256 _value) returns (bool success) {}

    /// @param _owner The address of the account owning tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @return Amount of remaining tokens allowed to spent
    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
    
}

contract StandardToken is Token {
    function transfer(address _to, uint256 _value) returns (bool success) {
        //Default assumes totalSupply can't be over max (2^256 - 1).
        //If your token leaves out totalSupply and can issue more tokens as time goes on, you need to check if it doesn't wrap.
        //Replace the if with this one instead.
        //if (balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
        if (balances[msg.sender] >= _value && _value > 0) {
            balances[msg.sender] -= _value;
            balances[_to] += _value;
            Transfer(msg.sender, _to, _value);
            return true;
        } else { return false; }
    }

    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
        //same as above. Replace this line with the following if you want to protect against wrapping uints.
        //if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
        if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) {
            balances[_to] += _value;
            balances[_from] -= _value;
            allowed[_from][msg.sender] -= _value;
            Transfer(_from, _to, _value);
            return true;
        } else { return false; }
    }

    function balanceOf(address _owner) constant returns (uint256 balance) {
        return balances[_owner];
    }

    function approve(address _spender, uint256 _value) returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }

    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
      return allowed[_owner][_spender];
    }

    mapping (address => uint256) balances;
    mapping (address => mapping (address => uint256)) allowed;
    uint256 public totalSupply;
}

// Based on TokenFactory(https://github.com/ConsenSys/Token-Factory)

contract SnipCoin is StandardToken {
    /* Public variables of the token */

    string public tokenName;       // Token name
    uint public decimals;          // Decimal points for token
    string public symbol;          // Token identifier
    uint public totalEthReceived; // The total amount of Ether received during the sale
    string public version = "1.0"; // Code version
    address public saleWalletAddress;  // The wallet address where the Ether from the sale will be stored

    // Multiplier for the decimals
    uint private constant DECIMALS_MULTIPLIER = 1000000000000000000;    

    function initializeSaleWalletAddress()
    {
        saleWalletAddress = 0x686f152dad6490df93b267e319f875a684bd26e2;
    }

    function initializeEthReceived()
    {
        totalEthReceived = 14500; // Ether received before public sale. Verify this figure before the sale starts.
    }

    function SnipCoin()
    {
        initializeSaleWalletAddress();
        initializeEthReceived();
        totalSupply = 10000000000;                           // In total, 10 billion tokens
        balances[msg.sender] = totalSupply * DECIMALS_MULTIPLIER;               // Give the creator all initial tokens (100000 for example)
        tokenName = "SnipCoin";                              // Name of token
        decimals = 18;                                       // Amount of decimals for display purposes
        symbol = "SNP";                                      // Set the symbol for display purposes
    }

    function receivePayment() payable
    {
        if (!saleWalletAddress.send(msg.value)) revert();
        totalEthReceived = totalEthReceived + msg.value;
    }
}

    Contract ABI  
[{"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":"","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":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenName","outputs":[{"name":"","type":"string"}],"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":"receivePayment","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"initializeSaleWalletAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"saleWalletAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"initializeEthReceived","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"totalEthReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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 Switch To Opcodes View
606060405260408051908101604052600381527f312e3000000000000000000000000000000000000000000000000000000000006020820152600790805161004b92916020019061017f565b50341561005757600080fd5b5b61006d64010000000061076a61014d82021704565b6100826401000000006107af61017682021704565b6402540be400600255600160a060020a033316600090815260208190526040908190206b204fce5e3e2502611000000090558051908101604052600881527f536e6970436f696e000000000000000000000000000000000000000000000000602082015260039080516100f992916020019061017f565b50601260045560408051908101604052600381527f534e5000000000000000000000000000000000000000000000000000000000006020820152600590805161014692916020019061017f565b505b61021f565b60088054600160a060020a03191673686f152dad6490df93b267e319f875a684bd26e21790555b565b6138a46006555b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101c057805160ff19168380011785556101ed565b828001600101855582156101ed579182015b828111156101ed5782518255916020019190600101906101d2565b5b506101fa9291506101fe565b5090565b61021c91905b808211156101fa5760008155600101610204565b5090565b90565b61095f8061022e6000396000f300606060405236156100d85763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663095ea7b381146100dd57806318160ddd1461011357806323b872dd14610138578063313ce5671461017457806354fd4d50146101995780636c02a9311461022457806370a08231146102af578063835c19f3146102e057806385e91347146102ea578063884ae10b146102ff5780638f038a5a1461032e57806395d89b4114610343578063a9059cbb146103ce578063a9a18dda14610404578063dd62ed3e14610429575b600080fd5b34156100e857600080fd5b6100ff600160a060020a0360043516602435610460565b604051901515815260200160405180910390f35b341561011e57600080fd5b6101266104cd565b60405190815260200160405180910390f35b341561014357600080fd5b6100ff600160a060020a03600435811690602435166044356104d3565b604051901515815260200160405180910390f35b341561017f57600080fd5b6101266105ca565b60405190815260200160405180910390f35b34156101a457600080fd5b6101ac6105d0565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101e95780820151818401525b6020016101d0565b50505050905090810190601f1680156102165780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561022f57600080fd5b6101ac61066e565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101e95780820151818401525b6020016101d0565b50505050905090810190601f1680156102165780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156102ba57600080fd5b610126600160a060020a036004351661070c565b60405190815260200160405180910390f35b6102e861072b565b005b34156102f557600080fd5b6102e861076a565b005b341561030a57600080fd5b6103126107a0565b604051600160a060020a03909116815260200160405180910390f35b341561033957600080fd5b6102e86107af565b005b341561034e57600080fd5b6101ac6107b8565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101e95780820151818401525b6020016101d0565b50505050905090810190601f1680156102165780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103d957600080fd5b6100ff600160a060020a0360043516602435610856565b604051901515815260200160405180910390f35b341561040f57600080fd5b610126610900565b60405190815260200160405180910390f35b341561043457600080fd5b610126600160a060020a0360043581169060243516610906565b60405190815260200160405180910390f35b600160a060020a03338116600081815260016020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60025481565b600160a060020a0383166000908152602081905260408120548290108015906105235750600160a060020a0380851660009081526001602090815260408083203390941683529290522054829010155b801561052f5750600082115b156105be57600160a060020a0380841660008181526020818152604080832080548801905588851680845281842080548990039055600183528184203390961684529490915290819020805486900390559091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016105c2565b5060005b5b9392505050565b60045481565b60078054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106665780601f1061063b57610100808354040283529160200191610666565b820191906000526020600020905b81548152906001019060200180831161064957829003601f168201915b505050505081565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106665780601f1061063b57610100808354040283529160200191610666565b820191906000526020600020905b81548152906001019060200180831161064957829003601f168201915b505050505081565b600160a060020a0381166000908152602081905260409020545b919050565b600854600160a060020a03163480156108fc0290604051600060405180830381858888f19350505050151561075f57600080fd5b60068054340190555b565b6008805473ffffffffffffffffffffffffffffffffffffffff191673686f152dad6490df93b267e319f875a684bd26e21790555b565b600854600160a060020a031681565b6138a46006555b565b60058054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156106665780601f1061063b57610100808354040283529160200191610666565b820191906000526020600020905b81548152906001019060200180831161064957829003601f168201915b505050505081565b600160a060020a03331660009081526020819052604081205482901080159061087f5750600082115b156108f157600160a060020a033381166000818152602081905260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016104c7565b5060006104c7565b5b92915050565b60065481565b600160a060020a038083166000908152600160209081526040808320938516835292905220545b929150505600a165627a7a723058207d6d40ae7fbf58e337b74930d4c5c283b8ba3fe22ed87d3cbec36985e17498800029

   Swarm Source:
bzzr://7d6d40ae7fbf58e337b74930d4c5c283b8ba3fe22ed87d3cbec36985e1749880
View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward