Contract Overview
Balance: 10 wei
Ether Value: Less Than $0.01 (@ $82.93/ETH)
Transactions: 18 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0x0a15233b7e896e960845819e6a10f4481a3aea6fat txn 0x1390f59f80321e75a880a883e3aaa27904ab423c57c227c7780a5f552eb7eceb
 Latest 18 txns

TxHash Age From To Value [TxFee]
0xdbea4258831cac4ee42c00c603ab7d05a52d0ae28661f6e9634b6288587a9c58177 days 13 hrs ago0xa631df70186f24ad3b6c004846f00a7f1da98d22  IN   0xa11e4ed59dc94e69612f3111942626ed513cb1720.0085654 Ether0.000126684
0x1c88aa1d84f943864945b10f3d1096728598b050a6db5a7e7be61e99f008544d177 days 13 hrs ago0x303eeab5c350cc8517823efab0a8b8672644ce02  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000083666
0x7ad98aa915c112ccb3c2e34781af84453450be385b4d8dbc27753afb04c9aa8f177 days 13 hrs ago0x303eeab5c350cc8517823efab0a8b8672644ce02  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000094572
0xabf57ccfffcf76145093bebd8d96682005832297fdc960f8bdbd1ca71906f8a2177 days 13 hrs ago0x303eeab5c350cc8517823efab0a8b8672644ce02  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000064572
0x09924869e07018e64dd3c996f89b9cc59a40074b7bbe7e76fc01fab67c71f7f9482 days 8 hrs ago0x3eb479c71d71e7c05507793497394d66623b9013  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000563493
0x460d2d3e4d41f0663570526c44d08e33720a386f629e8fb09bbaf30f44dd2fb5482 days 8 hrs ago0x3eb479c71d71e7c05507793497394d66623b9013  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000563493
0xf7e1c1a036294caab723f515310d41db11e6d122b565bf742851bb1dc520db1b482 days 8 hrs ago0x3eb479c71d71e7c05507793497394d66623b9013  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000563493
0x4741a90bdc1c36a4dbece37444644ad4bd9de6892a8bcdf3b43f5bcc24a9f45f482 days 8 hrs ago0x3eb479c71d71e7c05507793497394d66623b9013  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000878493
0x7ae5ee88c5a5c91225852d4ff5baa99cedadf4f47ddbdb44a766444ac6837d64482 days 8 hrs ago0x3eb479c71d71e7c05507793497394d66623b9013  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000678006
0xa70a83946b5c69c02588c373485cfec462b20b1c4cbfe41d748715804c371a55482 days 8 hrs ago0xf2e00894504a6b8855c281dd1c97cc0afc243c3c  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000563493
0x9cc1897179a9db6437009fbb3baaf8372d589df9c0176c4f241b59166501a540482 days 8 hrs ago0xf2e00894504a6b8855c281dd1c97cc0afc243c3c  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000563493
0x4724d50fedcbad357b537cb90ecdb2938614d24bfe035ee569e8b06c4b1286ce482 days 8 hrs ago0xf2e00894504a6b8855c281dd1c97cc0afc243c3c  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000563493
0x3ddb22e587801959e8fd3625a318f40e000cc9f9fc5fe4ef181676aee2824293482 days 8 hrs ago0xf2e00894504a6b8855c281dd1c97cc0afc243c3c  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000563493
0x8efbec228a372350f196fb5d6b8aea96cfb6498d0710ddc54002083bd78bf6ef482 days 8 hrs ago0xf2e00894504a6b8855c281dd1c97cc0afc243c3c  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000563493
0x2728f58b75ceb75f4bffc322ff44b1cbe66ab975c1b13f6d96dd1ca94d9424a4482 days 8 hrs ago0xf2e00894504a6b8855c281dd1c97cc0afc243c3c  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000563493
0xde9894b32dd4d85ceb88d9a66199a54870d0ec961711ecb118927cc8c3212f24482 days 8 hrs ago0xf2e00894504a6b8855c281dd1c97cc0afc243c3c  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000878493
0x101ece99fda9aca891cb93a9478868504f823afcebfaafcaaf6f6a1b523d2972482 days 8 hrs ago0xf2e00894504a6b8855c281dd1c97cc0afc243c3c  IN   0xa11e4ed59dc94e69612f3111942626ed513cb17210 wei0.000993006
0x1390f59f80321e75a880a883e3aaa27904ab423c57c227c7780a5f552eb7eceb482 days 8 hrs ago0x0a15233b7e896e960845819e6a10f4481a3aea6f  IN    Contract Creation0 Ether0.004772859
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 8 Internal Transactions

ParentTxHash Block Age From To Value
0x7ad98aa915c112ccb3c2e34781af84453450be385b4d8dbc27753afb04c9aa8f5826710177 days 13 hrs ago0xa11e4ed59dc94e69612f3111942626ed513cb1720x303eeab5c350cc8517823efab0a8b8672644ce029 wei
0x7ad98aa915c112ccb3c2e34781af84453450be385b4d8dbc27753afb04c9aa8f5826710177 days 13 hrs ago0xa11e4ed59dc94e69612f3111942626ed513cb1720x0a15233b7e896e960845819e6a10f4481a3aea6f1 wei
0xabf57ccfffcf76145093bebd8d96682005832297fdc960f8bdbd1ca71906f8a25826700177 days 13 hrs ago0xa11e4ed59dc94e69612f3111942626ed513cb1720x303eeab5c350cc8517823efab0a8b8672644ce0249 wei
0xabf57ccfffcf76145093bebd8d96682005832297fdc960f8bdbd1ca71906f8a25826700177 days 13 hrs ago0xa11e4ed59dc94e69612f3111942626ed513cb1720x0a15233b7e896e960845819e6a10f4481a3aea6f1 wei
0x7ae5ee88c5a5c91225852d4ff5baa99cedadf4f47ddbdb44a766444ac6837d644181295482 days 8 hrs ago0xa11e4ed59dc94e69612f3111942626ed513cb1720x3eb479c71d71e7c05507793497394d66623b901379 wei
0x7ae5ee88c5a5c91225852d4ff5baa99cedadf4f47ddbdb44a766444ac6837d644181295482 days 8 hrs ago0xa11e4ed59dc94e69612f3111942626ed513cb1720x0a15233b7e896e960845819e6a10f4481a3aea6f1 wei
0x101ece99fda9aca891cb93a9478868504f823afcebfaafcaaf6f6a1b523d29724181268482 days 8 hrs ago0xa11e4ed59dc94e69612f3111942626ed513cb1720xf2e00894504a6b8855c281dd1c97cc0afc243c3c9 wei
0x101ece99fda9aca891cb93a9478868504f823afcebfaafcaaf6f6a1b523d29724181268482 days 8 hrs ago0xa11e4ed59dc94e69612f3111942626ed513cb1720x0a15233b7e896e960845819e6a10f4481a3aea6f1 wei
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), NestedArrayFunctionCallDecoder (medium-severity), ZeroFunctionSelector (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: EtherLotto
Compiler Text: v0.4.15+commit.bbb8e64f
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.15;

/// @title Ethereum Lottery Game.

contract EtherLotto {

    // Amount of ether needed for participating in the lottery.
    uint constant TICKET_AMOUNT = 10;

    // Fixed amount fee for each lottery game.
    uint constant FEE_AMOUNT = 1;

    // Address where fee is sent.
    address public bank;

    // Public jackpot that each participant can win (minus fee).
    uint public pot;

    // Lottery constructor sets bank account from the smart-contract owner.
    function EtherLotto() {
        bank = msg.sender;
    }

    // Public function for playing lottery. Each time this function
    // is invoked, the sender has an oportunity for winning pot.
    function play() payable {

        // Participants must spend some fixed ether before playing lottery.
        assert(msg.value == TICKET_AMOUNT);

        // Increase pot for each participant.
        pot += msg.value;

        // Compute some *almost random* value for selecting winner from current transaction.
        var random = uint(sha3(block.timestamp)) % 2;

        // Distribution: 50% of participants will be winners.
        if (random == 0) {

            // Send fee to bank account.
            bank.transfer(FEE_AMOUNT);

            // Send jackpot to winner.
            msg.sender.transfer(pot - FEE_AMOUNT);

            // Restart jackpot.
            pot = 0;
        }
    }

}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"pot","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"bank","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"play","outputs":[],"payable":true,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b610235806100616000396000f30060606040526000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680634ba2363a1461005457806376cdb03b1461007d57806393e84cd9146100d2575b600080fd5b341561005f57600080fd5b6100676100dc565b6040518082815260200191505060405180910390f35b341561008857600080fd5b6100906100e2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100da610107565b005b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600a3414151561011557fe5b346001600082825401925050819055506002426040518082815260200191505060405180910390206001900481151561014a57fe5b0690506000811415610205576000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc60019081150290604051600060405180830381858888f1935050505015156101b857600080fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc60018054039081150290604051600060405180830381858888f1935050505015156101fc57600080fd5b60006001819055505b5b505600a165627a7a7230582021347d94582729878eb74356b7b81bc6ccc1b141e4f978349ae1e9166c1f8cd90029

   Swarm Source:
bzzr://21347d94582729878eb74356b7b81bc6ccc1b141e4f978349ae1e9166c1f8cd9

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.