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

TxHash Age From To Value [TxFee]
0x0c355c99d473606e82df6b743b840192eedfe6787b207090d6eadec377ab49cc122 days 9 hrs ago0x3535cdc4f9451aaa9f1acdf92a83167028c449e0  IN   0x4aec37ae465e1d78649aff117bab737c5fb4f2141.000000001 Ether0.00031279
0x1bc357874d08992aa6baddc463b64a6165a7fa837662bbad3067d40458b63d60124 days 7 hrs ago0xac413e7f9c2a5ed2fde919ce3d1e1e98f8d33a55  IN   0x4aec37ae465e1d78649aff117bab737c5fb4f2141.04001238438898 Ether0.00003156
0xd5e1b01fef2bd4395a3c704c587221b780f6cb6323903bcd5fcfc2eed5c524bc124 days 7 hrs ago0xac413e7f9c2a5ed2fde919ce3d1e1e98f8d33a55  IN   0x4aec37ae465e1d78649aff117bab737c5fb4f2140 Ether0.0000609168
0x586dc8bde23766aff81e8665ec1661b11998e6d42c1394ddfb59ad707b9a8fbb124 days 7 hrs ago0xac413e7f9c2a5ed2fde919ce3d1e1e98f8d33a55  IN    Contract Creation0 Ether0.0008405523
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0x0c355c99d473606e82df6b743b840192eedfe6787b207090d6eadec377ab49cc5817216122 days 9 hrs ago0x4aec37ae465e1d78649aff117bab737c5fb4f2140x3535cdc4f9451aaa9f1acdf92a83167028c449e02.04001238538898 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_IT
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_IT
{
    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
6060604052341561000f57600080fd5b6105188061001e6000396000f30060606040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631f1c827f811461006e5780633e3ee859146100f65780633fad9ae01461013e578063648f0bde146101c8578063f50ab247146101db575b005b61006c60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405281815292919060208401838380828437509496506101e395505050505050565b61006c60046024813581810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650509335935061028d92505050565b341561014957600080fd5b6101516102c2565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561018d578082015183820152602001610175565b50505050905090810190601f1680156101ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006c6004803560248101910135610360565b61006c6103f7565b600254151561028957806040518082805190602001908083835b6020831061021c5780518252601f1990920191602091820191016101fd565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600255600082805161025f929160200190610451565b506001805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a03161790555b5050565b60015433600160a060020a039081169116146102a857600080fd5b60008280516102bb929160200190610451565b5060025550565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103585780601f1061032d57610100808354040283529160200191610358565b820191906000526020600020905b81548152906001019060200180831161033b57829003601f168201915b505050505081565b32600160a060020a031633600160a060020a031614151561038057600080fd5b8181604051808383808284378201915050925050506040519081900390206002541480156103b55750670de0b6b3a764000034115b156102895733600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561028957600080fd5b60015433600160a060020a0390811691161461041257600080fd5b33600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561044f57600080fd5b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061049257805160ff19168380011785556104bf565b828001600101855582156104bf579182015b828111156104bf5782518255916020019190600101906104a4565b506104cb9291506104cf565b5090565b6104e991905b808211156104cb57600081556001016104d5565b905600a165627a7a723058201aa8ae89d9d6d67cbdf5b9ef9b509311f077744c9599cec75a003b65cb2ab20c0029

   Swarm Source:
bzzr://1aa8ae89d9d6d67cbdf5b9ef9b509311f077744c9599cec75a003b65cb2ab20c

 

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.