Sponsored Link:   Learn and build dApps today without code using Crowd Machine's Crowd App Studio.
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 3 txns
 Latest 3 txns

TxHash Age From To Value [TxFee]
0xf9ec2ce22af7e11f999b34ecbd1f9747b83e2930b8662fc000b2d50264d3e7c926 days 17 hrs ago0x3535cdc4f9451aaa9f1acdf92a83167028c449e0  IN   0x878e6c6f9a86a1e5d313e7b872ccd109135e91b41.000000000001 Ether0.00124604
0xfe222e2ecb548466e432ffaae9e0e744736812217c383d41b8ef62ce8583c90a27 days 7 hrs ago0x8ddade7903f49d9e5bb250334b9397e83e0bdfe8  IN   0x878e6c6f9a86a1e5d313e7b872ccd109135e91b41.051784389483777 Ether0.000040432
0x4b13c430ff1007f56da899d9e09c62fd165edbb62e7742ddb97c74b56761859e27 days 7 hrs ago0x8ddade7903f49d9e5bb250334b9397e83e0bdfe8  IN    Contract Creation0 Ether0.0005604578
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0xf9ec2ce22af7e11f999b34ecbd1f9747b83e2930b8662fc000b2d50264d3e7c9583361426 days 17 hrs ago0x878e6c6f9a86a1e5d313e7b872ccd109135e91b40x3535cdc4f9451aaa9f1acdf92a83167028c449e02.051784389484777 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact match)
Contract Name: QUIZZZ
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 QUIZZZ
{
    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
6060604052341561000f57600080fd5b6105188061001e6000396000f30060606040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631f1c827f811461006e5780633e3ee859146100f65780633fad9ae01461013e578063648f0bde146101c8578063f50ab247146101db575b005b61006c60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405281815292919060208401838380828437509496506101e395505050505050565b61006c60046024813581810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650509335935061028d92505050565b341561014957600080fd5b6101516102c2565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561018d578082015183820152602001610175565b50505050905090810190601f1680156101ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006c6004803560248101910135610360565b61006c6103f7565b600254151561028957806040518082805190602001908083835b6020831061021c5780518252601f1990920191602091820191016101fd565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600255600082805161025f929160200190610451565b506001805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a03161790555b5050565b60015433600160a060020a039081169116146102a857600080fd5b60008280516102bb929160200190610451565b5060025550565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103585780601f1061032d57610100808354040283529160200191610358565b820191906000526020600020905b81548152906001019060200180831161033b57829003601f168201915b505050505081565b32600160a060020a031633600160a060020a031614151561038057600080fd5b8181604051808383808284378201915050925050506040519081900390206002541480156103b55750670de0b6b3a764000034115b156102895733600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561028957600080fd5b60015433600160a060020a0390811691161461041257600080fd5b33600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561044f57600080fd5b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061049257805160ff19168380011785556104bf565b828001600101855582156104bf579182015b828111156104bf5782518255916020019190600101906104a4565b506104cb9291506104cf565b5090565b6104e991905b808211156104cb57600081556001016104d5565b905600a165627a7a723058207e1279a3554d6921495518e416135495cec921ebadec342ea1ac41404f24e6430029

   Swarm Source:
bzzr://7e1279a3554d6921495518e416135495cec921ebadec342ea1ac41404f24e643

 

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.