APE Price: $0.97 (-6.23%)

Contract

0xE1083fDe4b438b50641abcE7259ff935d9a83eE4

Overview

APE Balance

Apechain LogoApechain LogoApechain Logo0 APE

APE Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Multicall

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, None license
/**
 *Submitted for verification at apescan.io on 2024-12-29
*/

pragma solidity >=0.5.0;
pragma experimental ABIEncoderV2;

////// /nix/store/im7ll7dx8gsw2da9k5xwbf8pbjfli2hc-multicall-df1e59d/src/Multicall.sol
/* pragma solidity >=0.5.0; */
/* pragma experimental ABIEncoderV2; */

/// @title Multicall - Aggregate results from multiple read-only function calls

contract Multicall {
    struct Call {
        address target;
        bytes callData;
    }

    function aggregate(
        Call[] memory calls
    ) public returns (uint256 blockNumber, bytes[] memory returnData) {
        blockNumber = block.number;
        returnData = new bytes[](calls.length);
        for (uint256 i = 0; i < calls.length; i++) {
            (bool success, bytes memory ret) = calls[i].target.call(
                calls[i].callData
            );
            require(success);
            returnData[i] = ret;
        }
    }

    // Helper functions
    function getEthBalance(address addr) public view returns (uint256 balance) {
        balance = addr.balance;
    }

    function getBlockHash(
        uint256 blockNumber
    ) public view returns (bytes32 blockHash) {
        blockHash = blockhash(blockNumber);
    }

    function getLastBlockHash() public view returns (bytes32 blockHash) {
        blockHash = blockhash(block.number - 1);
    }

    function getCurrentBlockTimestamp()
        public
        view
        returns (uint256 timestamp)
    {
        timestamp = block.timestamp;
    }

    function getCurrentBlockDifficulty()
        public
        view
        returns (uint256 difficulty)
    {
        difficulty = block.difficulty;
    }

    function getCurrentBlockGasLimit() public view returns (uint256 gaslimit) {
        gaslimit = block.gaslimit;
    }

    function getCurrentBlockCoinbase() public view returns (address coinbase) {
        coinbase = block.coinbase;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct Multicall.Call[]","name":"calls","type":"tuple[]"}],"name":"aggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes[]","name":"returnData","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlockCoinbase","outputs":[{"internalType":"address","name":"coinbase","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlockDifficulty","outputs":[{"internalType":"uint256","name":"difficulty","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlockGasLimit","outputs":[{"internalType":"uint256","name":"gaslimit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentBlockTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getEthBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50610552806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806372425d9d1161005b57806372425d9d146100e757806386d516e8146100ef578063a8b0574e146100f7578063ee82ac5e1461010c57610088565b80630f28c97d1461008d578063252dba42146100ab57806327e86d6e146100cc5780634d2301cc146100d4575b600080fd5b61009561011f565b6040516100a2919061043c565b60405180910390f35b6100be6100b9366004610314565b610123565b6040516100a2929190610445565b610095610246565b6100956100e23660046102f2565b61024f565b61009561025c565b610095610260565b6100ff610264565b6040516100a29190610428565b61009561011a3660046103f4565b610268565b4290565b8051439060609067ffffffffffffffff8111801561014057600080fd5b5060405190808252806020026020018201604052801561017457816020015b606081526020019060019003908161015f5790505b50905060005b8351811015610240576000606085838151811061019357fe5b6020026020010151600001516001600160a01b03168684815181106101b457fe5b6020026020010151602001516040516101cd919061040c565b6000604051808303816000865af19150503d806000811461020a576040519150601f19603f3d011682016040523d82523d6000602084013e61020f565b606091505b50915091508161021e57600080fd5b8084848151811061022b57fe5b6020908102919091010152505060010161017a565b50915091565b60001943014090565b6001600160a01b03163190565b4490565b4590565b4190565b4090565b80356001600160a01b038116811461028357600080fd5b92915050565b600082601f830112610299578081fd5b813567ffffffffffffffff8111156102af578182fd5b6102c2601f8201601f19166020016104c5565b91508082528360208285010111156102d957600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215610303578081fd5b61030d838361026c565b9392505050565b60006020808385031215610326578182fd5b823567ffffffffffffffff8082111561033d578384fd5b81850186601f82011261034e578485fd5b803592508183111561035e578485fd5b61036b84858502016104c5565b83815284810190828601875b868110156103e55781358501604080601f19838f03011215610397578a8bfd5b6103a0816104c5565b6103ac8e8c850161026c565b815281830135898111156103be578c8dfd5b6103cc8f8d83870101610289565b828d015250865250509287019290870190600101610377565b50909998505050505050505050565b600060208284031215610405578081fd5b5035919050565b6000825161041e8184602087016104ec565b9190910192915050565b6001600160a01b0391909116815260200190565b90815260200190565b600060408201848352602060408185015281855180845260608601915060608382028701019350828701855b828110156104b757878603605f190184528151805180885261049881888a018985016104ec565b601f01601f191696909601850195509284019290840190600101610471565b509398975050505050505050565b60405181810167ffffffffffffffff811182821017156104e457600080fd5b604052919050565b60005b838110156105075781810151838201526020016104ef565b83811115610516576000848401525b5050505056fea2646970667358221220359374fa09f447b71edcd45a64f172e6044cf3832f64bcfd8ba2008ddebe114b64736f6c63430006060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c806372425d9d1161005b57806372425d9d146100e757806386d516e8146100ef578063a8b0574e146100f7578063ee82ac5e1461010c57610088565b80630f28c97d1461008d578063252dba42146100ab57806327e86d6e146100cc5780634d2301cc146100d4575b600080fd5b61009561011f565b6040516100a2919061043c565b60405180910390f35b6100be6100b9366004610314565b610123565b6040516100a2929190610445565b610095610246565b6100956100e23660046102f2565b61024f565b61009561025c565b610095610260565b6100ff610264565b6040516100a29190610428565b61009561011a3660046103f4565b610268565b4290565b8051439060609067ffffffffffffffff8111801561014057600080fd5b5060405190808252806020026020018201604052801561017457816020015b606081526020019060019003908161015f5790505b50905060005b8351811015610240576000606085838151811061019357fe5b6020026020010151600001516001600160a01b03168684815181106101b457fe5b6020026020010151602001516040516101cd919061040c565b6000604051808303816000865af19150503d806000811461020a576040519150601f19603f3d011682016040523d82523d6000602084013e61020f565b606091505b50915091508161021e57600080fd5b8084848151811061022b57fe5b6020908102919091010152505060010161017a565b50915091565b60001943014090565b6001600160a01b03163190565b4490565b4590565b4190565b4090565b80356001600160a01b038116811461028357600080fd5b92915050565b600082601f830112610299578081fd5b813567ffffffffffffffff8111156102af578182fd5b6102c2601f8201601f19166020016104c5565b91508082528360208285010111156102d957600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215610303578081fd5b61030d838361026c565b9392505050565b60006020808385031215610326578182fd5b823567ffffffffffffffff8082111561033d578384fd5b81850186601f82011261034e578485fd5b803592508183111561035e578485fd5b61036b84858502016104c5565b83815284810190828601875b868110156103e55781358501604080601f19838f03011215610397578a8bfd5b6103a0816104c5565b6103ac8e8c850161026c565b815281830135898111156103be578c8dfd5b6103cc8f8d83870101610289565b828d015250865250509287019290870190600101610377565b50909998505050505050505050565b600060208284031215610405578081fd5b5035919050565b6000825161041e8184602087016104ec565b9190910192915050565b6001600160a01b0391909116815260200190565b90815260200190565b600060408201848352602060408185015281855180845260608601915060608382028701019350828701855b828110156104b757878603605f190184528151805180885261049881888a018985016104ec565b601f01601f191696909601850195509284019290840190600101610471565b509398975050505050505050565b60405181810167ffffffffffffffff811182821017156104e457600080fd5b604052919050565b60005b838110156105075781810151838201526020016104ef565b83811115610516576000848401525b5050505056fea2646970667358221220359374fa09f447b71edcd45a64f172e6044cf3832f64bcfd8ba2008ddebe114b64736f6c63430006060033

Deployed Bytecode Sourcemap

309:1595:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;309:1595:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;1329:154:0;;;:::i;:::-;;;;;;;;;;;;;;;;413:465;;;;;;;;;:::i;:::-;;;;;;;;;1195:126;;;:::i;911:116::-;;;;;;;;;:::i;1491:158::-;;;:::i;1657:118::-;;;:::i;1783:::-;;;:::i;:::-;;;;;;;;1035:152;;;;;;;;;:::i;1329:154::-;1460:15;;1329:154::o;413:465::-;606:12;;558;;506:25;;594;;;2:2:-1;;;;27:1;24;17:12;2:2;594:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;581:38:0;-1:-1:-1;635:9:0;630:241;654:5;:12;650:1;:16;630:241;;;689:12;703:16;723:5;729:1;723:8;;;;;;;;;;;;;;:15;;;-1:-1:-1;;;;;723:20:0;762:5;768:1;762:8;;;;;;;;;;;;;;:17;;;723:71;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;688:106:0;;;;817:7;809:16;;12:1:-1;9;2:12;809:16:0;856:3;840:10;851:1;840:13;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;668:3:0;;630:241;;;;413:465;;;:::o;1195:126::-;-1:-1:-1;;1296:12:0;:16;1286:27;;1195:126::o;911:116::-;-1:-1:-1;;;;;1007:12:0;;;911:116::o;1491:158::-;1625:16;;1491:158::o;1657:118::-;1753:14;;1657:118::o;1783:::-;1879:14;;1783:118::o;1035:152::-;1157:22;;1035:152::o;5:130:-1:-;72:20;;-1:-1;;;;;8910:54;;9650:35;;9640:2;;9699:1;;9689:12;9640:2;57:78;;;;;918:440;;1019:3;1012:4;1004:6;1000:17;996:27;986:2;;-1:-1;;1027:12;986:2;1074:6;1061:20;7404:18;7396:6;7393:30;7390:2;;;-1:-1;;7426:12;7390:2;1096:64;7499:9;7480:17;;-1:-1;;7476:33;7567:4;7557:15;1096:64;;;1087:73;;1180:6;1173:5;1166:21;1284:3;7567:4;1275:6;1208;1266:16;;1263:25;1260:2;;;1301:1;;1291:12;1260:2;9137:6;7567:4;1208:6;1204:17;7567:4;1242:5;1238:16;9114:30;9193:1;9175:16;;;7567:4;9175:16;9168:27;1242:5;979:379;-1:-1;;979:379;2100:241;;2204:2;2192:9;2183:7;2179:23;2175:32;2172:2;;;-1:-1;;2210:12;2172:2;2272:53;2317:7;2293:22;2272:53;;;2262:63;2166:175;-1:-1;;;2166:175;2348:415;;2496:2;;2484:9;2475:7;2471:23;2467:32;2464:2;;;-1:-1;;2502:12;2464:2;2560:17;2547:31;2598:18;;2590:6;2587:30;2584:2;;;-1:-1;;2620:12;2584:2;2730:6;2719:9;2715:22;310:3;303:4;295:6;291:17;287:27;277:2;;-1:-1;;318:12;277:2;365:6;352:20;338:34;;2598:18;7101:6;7098:30;7095:2;;;-1:-1;;7131:12;7095:2;387:99;2496:2;;7168:6;7164:17;7229:15;387:99;;;514:21;;;571:14;;;;546:17;;;-1:-1;651:252;676:6;673:1;670:13;651:252;;;759:3;746:17;550:6;734:30;1502:4;;7499:9;;734:30;1485:3;1481:19;;1477:30;1474:2;;;-1:-1;;1510:12;1474:2;1538:20;1502:4;1538:20;;;1642:49;1687:3;2496:2;734:30;;1642:49;;;1624:16;1617:75;1502:4;734:30;1770:18;1757:32;2598:18;1801:6;1798:30;1795:2;;;-1:-1;;1831:12;1795:2;1876:58;1930:3;2496:2;1921:6;734:30;1906:22;;1876:58;;;1858:16;;;1851:84;-1:-1;771:69;;-1:-1;;854:14;;;;882;;;;698:1;691:9;651:252;;;-1:-1;2640:107;;2458:305;-1:-1;;;;;;;;;2458:305;2770:241;;2874:2;2862:9;2853:7;2849:23;2845:32;2842:2;;;-1:-1;;2880:12;2842:2;-1:-1;2030:20;;2836:175;-1:-1;2836:175;5224:262;;4901:5;7868:12;5012:52;5057:6;5052:3;5045:4;5038:5;5034:16;5012:52;;;5076:16;;;;;5349:137;-1:-1;;5349:137;5493:213;-1:-1;;;;;8910:54;;;;3287:37;;5611:2;5596:18;;5582:124;5713:213;4362:37;;;5831:2;5816:18;;5802:124;6153:508;;6367:2;6356:9;6352:18;4392:5;4369:3;4362:37;6485:2;6367;6485;6474:9;6470:18;6463:48;6525:126;3583:5;7868:12;8301:6;8296:3;8289:19;8329:14;6356:9;8329:14;3595:102;;8329:14;6485:2;3754:6;3750:17;6356:9;3741:27;;3729:39;;6485:2;3848:5;7713:14;-1:-1;3887:357;3912:6;3909:1;3906:13;3887:357;;;3964:20;;;-1:-1;;3964:20;3952:33;;4013:13;;7868:12;;8289:19;;;4626:52;7868:12;8329:14;;;4648:16;;;4626:52;;;7499:9;9554:14;-1:-1;;9550:28;4690:39;;;;;;;-1:-1;4223:14;;;;8135;;;;3934:1;3927:9;3887:357;;;-1:-1;6517:134;;6338:323;-1:-1;;;;;;;;6338:323;6668:256;6730:2;6724:9;6756:17;;;6831:18;6816:34;;6852:22;;;6813:62;6810:2;;;6888:1;;6878:12;6810:2;6730;6897:22;6708:216;;-1:-1;6708:216;9210:268;9275:1;9282:101;9296:6;9293:1;9290:13;9282:101;;;9363:11;;;9357:18;9344:11;;;9337:39;9318:2;9311:10;9282:101;;;9398:6;9395:1;9392:13;9389:2;;;9275:1;9454:6;9449:3;9445:16;9438:27;9389:2;;9259:219;;;

Swarm Source

ipfs://359374fa09f447b71edcd45a64f172e6044cf3832f64bcfd8ba2008ddebe114b

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

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.