Latest 4 txns

TxHash Age From To Value [TxFee]
0xf5358b6e5cce3c769e3cabb363c287906d61c5913efbdb3a78647dc93b0b8fb084 days 9 hrs ago0xb91ff5835cd553b6c9293e68b8d2973fdb5bce57  IN   0xe466c046112a6bdefacbed3c45a61b964c63dd980 Ether0.000023805
0x0f856f000180a803c3f8e9fc36f120857efceeb59f5ebaf9e62ad3946cd3010884 days 9 hrs ago0xb91ff5835cd553b6c9293e68b8d2973fdb5bce57  IN   0xe466c046112a6bdefacbed3c45a61b964c63dd980.011 Ether0.000047457
0xa2e7e9dc6e20815acb28b0facc7823cab73e8f1a0d17dbbc71efda945835c83184 days 9 hrs ago0xb91ff5835cd553b6c9293e68b8d2973fdb5bce57  IN   0xe466c046112a6bdefacbed3c45a61b964c63dd980.011 Ether0.000062457
0xcd63dc1ca61790adfa7fd0533ae4d965d24f7bd692782e0a7dd1d511a987459584 days 10 hrs ago0xb91ff5835cd553b6c9293e68b8d2973fdb5bce57  IN    Contract Creation0 Ether0.000378317
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0xf5358b6e5cce3c769e3cabb363c287906d61c5913efbdb3a78647dc93b0b8fb0340040284 days 9 hrs ago0xe466c046112a6bdefacbed3c45a61b964c63dd980xb91ff5835cd553b6c9293e68b8d2973fdb5bce570.022 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Verified Source Code for Contract 0x97009f6d36dCDcD5b18F32e3115D0c0a804CB8B4
Contract Name: Lottery
Compiler Version: v0.4.19+commit.c4cbbb05
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.17;

contract Lottery {
    address public manager;
    address[] public players;

    function Lottery() public {
        manager = msg.sender;
    }

    function enter() public payable {
        require(msg.value > .01 ether);

        players.push(msg.sender);
    }

    function random() private view returns (uint) {
        return uint(keccak256(block.difficulty, now, players));
    }

    function pickWinner() public restricted {
        uint index = random() % players.length;
        players[index].transfer(this.balance);
        players = new address[](0);
    }

    modifier restricted() {
        require(msg.sender == manager);
        _;
    }

    function getPlayers() public view returns (address[]) {
        return players;
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"manager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pickWinner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getPlayers","outputs":[{"name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"enter","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"players","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b60008054600160a060020a033316600160a060020a03199091161790556104758061003b6000396000f30060606040526004361061006c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663481c6a7581146100715780635d495aea146100a05780638b5b9ccc146100b5578063e97dcb621461011b578063f71d96cb14610123575b600080fd5b341561007c57600080fd5b610084610139565b604051600160a060020a03909116815260200160405180910390f35b34156100ab57600080fd5b6100b3610148565b005b34156100c057600080fd5b6100c8610203565b60405160208082528190810183818151815260200191508051906020019060200280838360005b838110156101075780820151838201526020016100ef565b505050509050019250505060405180910390f35b6100b361026c565b341561012e57600080fd5b6100846004356102c4565b600054600160a060020a031681565b6000805433600160a060020a0390811691161461016457600080fd5b60015461016f6102ec565b81151561017857fe5b06905060018181548110151561018a57fe5b600091825260209091200154600160a060020a039081169030163180156108fc0290604051600060405180830381858888f1935050505015156101cc57600080fd5b60006040518059106101db5750595b908082528060200260200182016040525060019080516101ff92916020019061034f565b5050565b61020b6103c3565b600180548060200260200160405190810160405280929190818152602001828054801561026157602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311610243575b505050505090505b90565b662386f26fc10000341161027f57600080fd5b6001805480820161029083826103d5565b506000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a0316179055565b60018054829081106102d257fe5b600091825260209091200154600160a060020a0316905081565b60004442600160405180848152602001838152602001828054801561033a57602002820191906000526020600020905b8154600160a060020a0316815260019091019060200180831161031c575b50509350505050604051908190039020905090565b8280548282559060005260206000209081019282156103b3579160200282015b828111156103b3578251825473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03919091161782556020929092019160019091019061036f565b506103bf9291506103fe565b5090565b60206040519081016040526000815290565b8154818355818115116103f9576000838152602090206103f991810190830161042f565b505050565b61026991905b808211156103bf57805473ffffffffffffffffffffffffffffffffffffffff19168155600101610404565b61026991905b808211156103bf57600081556001016104355600a165627a7a72305820d3f38bdf269c92773f5ed9ff34ef1ede2ef15324a20bf419cf4a810ba7577b360029

   Swarm Source:
bzzr://d3f38bdf269c92773f5ed9ff34ef1ede2ef15324a20bf419cf4a810ba7577b36

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward