Contract 0x52bfe8fE06c8197a8e3dCcE57cE012e13a7315EB 2

 
Txn Hash
Block
From
To
Value [Txn Fee]
0x4912ea755caa8422c9707154e4f32a4dde110cc11d02064211a5402ae915356722139172021-10-14 12:29:202 days 11 hrs ago0xe3c601b1fc6564ebf5603fcad7956697761e39db IN  Contract Creation0 ETH0.010349044183 ETH
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Multicall

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at arbiscan.io on 2021-10-14
*/

/**
 *Submitted for verification at Etherscan.io on 2019-06-10
*/

pragma solidity >=0.5.0;
pragma experimental ABIEncoderV2;

/// @title Multicall - Aggregate results from multiple read-only function calls
/// @author Michael Elliot <[email protected]>
/// @author Joshua Levine <[email protected]>
/// @author Nick Johnson <[email protected]>

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

608060405234801561001057600080fd5b5061053e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100785760003560e01c80630f28c97d1461007d578063252dba421461009b57806327e86d6e146100bc5780634d2301cc146100c457806372425d9d146100d757806386d516e8146100df578063a8b0574e146100e7578063ee82ac5e146100fc575b600080fd5b61008561010f565b6040516100929190610429565b60405180910390f35b6100ae6100a9366004610302565b610113565b604051610092929190610432565b610085610235565b6100856100d23660046102e0565b61023e565b61008561024b565b61008561024f565b6100ef610253565b6040516100929190610415565b61008561010a3660046103e1565b610257565b4290565b805143906060906001600160401b038111801561012f57600080fd5b5060405190808252806020026020018201604052801561016357816020015b606081526020019060019003908161014e5790505b50905060005b835181101561022f576000606085838151811061018257fe5b6020026020010151600001516001600160a01b03168684815181106101a357fe5b6020026020010151602001516040516101bc91906103f9565b6000604051808303816000865af19150503d80600081146101f9576040519150601f19603f3d011682016040523d82523d6000602084013e6101fe565b606091505b50915091508161020d57600080fd5b8084848151811061021a57fe5b60209081029190910101525050600101610169565b50915091565b60001943014090565b6001600160a01b03163190565b4490565b4590565b4190565b4090565b80356001600160a01b038116811461027257600080fd5b92915050565b600082601f830112610288578081fd5b81356001600160401b0381111561029d578182fd5b6102b0601f8201601f19166020016104b2565b91508082528360208285010111156102c757600080fd5b8060208401602084013760009082016020015292915050565b6000602082840312156102f1578081fd5b6102fb838361025b565b9392505050565b60006020808385031215610314578182fd5b82356001600160401b038082111561032a578384fd5b81850186601f82011261033b578485fd5b803592508183111561034b578485fd5b61035884858502016104b2565b83815284810190828601875b868110156103d25781358501604080601f19838f03011215610384578a8bfd5b61038d816104b2565b6103998e8c850161025b565b815281830135898111156103ab578c8dfd5b6103b98f8d83870101610278565b828d015250865250509287019290870190600101610364565b50909998505050505050505050565b6000602082840312156103f2578081fd5b5035919050565b6000825161040b8184602087016104d8565b9190910192915050565b6001600160a01b0391909116815260200190565b90815260200190565b600060408201848352602060408185015281855180845260608601915060608382028701019350828701855b828110156104a457878603605f190184528151805180885261048581888a018985016104d8565b601f01601f19169690960185019550928401929084019060010161045e565b509398975050505050505050565b6040518181016001600160401b03811182821017156104d057600080fd5b604052919050565b60005b838110156104f35781810151838201526020016104db565b83811115610502576000848401525b5050505056fea2646970667358221220b21ad064e43c00c62439b5d0f7604bfcffd6b3f4f92d7fa1aae0e87a3d9d9abb64736f6c63430006060033

Deployed ByteCode Sourcemap

362:1450:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;362:1450:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;1307:122:0;;;:::i;:::-;;;;;;;;;;;;;;;;464:416;;;;;;;;;:::i;:::-;;;;;;;;;1175:126;;;:::i;911:116::-;;;;;;;;;:::i;1435:126::-;;;:::i;1567:118::-;;;:::i;1691:::-;;;:::i;:::-;;;;;;;;1033:136;;;;;;;;;:::i;1307:122::-;1406:15;;1307:122::o;464:416::-;641:12;;593;;541:25;;-1:-1:-1;;;;;629:25:0;;2:2:-1;;;;27:1;24;17:12;2:2;629:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;616:38:0;-1:-1:-1;669:9:0;665:208;688:5;:12;684:1;:16;665:208;;;723:12;737:16;757:5;763:1;757:8;;;;;;;;;;;;;;:15;;;-1:-1:-1;;;;;757:20:0;778:5;784:1;778:8;;;;;;;;;;;;;;:17;;;757:39;;;;;;;;;;;;;;;;;;;;;;;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;;722:74:0;;;;819:7;811:16;;12:1:-1;9;2:12;811:16:0;858:3;842:10;853:1;842:13;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;702:3:0;;665:208;;;;464:416;;;:::o;1175:126::-;-1:-1:-1;;1276:12:0;:16;1266:27;;1175:126::o;911:116::-;-1:-1:-1;;;;;1007:12:0;;;911:116::o;1435:126::-;1537:16;;1435:126::o;1567:118::-;1663:14;;1567:118::o;1691:::-;1787:14;;1691:118::o;1033:136::-;1139:22;;1033:136::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;1061:20;;-1:-1;;;;;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;2547:31;;-1:-1;;;;;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;;;-1:-1;;;;;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://b21ad064e43c00c62439b5d0f7604bfcffd6b3f4f92d7fa1aae0e87a3d9d9abb
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.