Contract 0xc9616280cc74b3b2196d32325f5278a7c2b593c4 2

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xaf6864af03b3380f9de2f9f8f5c26c1ed2e6e82f71fb63e845d55ae5d31d556b0x608060409818972022-05-08 7:54:2410 days 23 hrs ago0x115efedb74314083bee38494e7e9e6c498328823 IN  Create: Multicall0 GLMR0.04368468
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Multicall

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at moonbeam.moonscan.io on 2022-05-08
*/

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

[{"constant":false,"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[]"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentBlockCoinbase","outputs":[{"internalType":"address","name":"coinbase","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentBlockDifficulty","outputs":[{"internalType":"uint256","name":"difficulty","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentBlockGasLimit","outputs":[{"internalType":"uint256","name":"gaslimit","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentBlockTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getEthBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getLastBlockHash","outputs":[{"internalType":"bytes32","name":"blockHash","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506106c0806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806372425d9d1161005b57806372425d9d146100e757806386d516e8146100ef578063a8b0574e146100f7578063ee82ac5e1461010c57610088565b80630f28c97d1461008d578063252dba42146100ab57806327e86d6e146100cc5780634d2301cc146100d4575b600080fd5b61009561011f565b6040516100a2919061053a565b60405180910390f35b6100be6100b93660046103cd565b610123565b6040516100a2929190610548565b61009561023e565b6100956100e23660046103a7565b610247565b610095610261565b610095610265565b6100ff610269565b6040516100a2919061052c565b61009561011a366004610402565b61026d565b4290565b60006060439150825160405190808252806020026020018201604052801561015f57816020015b606081526020019060019003908161014a5790505b50905060005b8351811015610238576000606085838151811061017e57fe5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff168684815181106101ac57fe5b6020026020010151602001516040516101c59190610520565b6000604051808303816000865af19150503d8060008114610202576040519150601f19603f3d011682016040523d82523d6000602084013e610207565b606091505b50915091508161021657600080fd5b8084848151811061022357fe5b60209081029190910101525050600101610165565b50915091565b60001943014090565b73ffffffffffffffffffffffffffffffffffffffff163190565b4490565b4590565b4190565b4090565b803561027c8161065d565b92915050565b600082601f83011261029357600080fd5b81356102a66102a18261058f565b610568565b81815260209384019390925082018360005b838110156102e457813586016102ce888261033d565b84525060209283019291909101906001016102b8565b5050505092915050565b600082601f8301126102ff57600080fd5b813561030d6102a1826105b0565b9150808252602083016020830185838301111561032957600080fd5b610334838284610617565b50505092915050565b60006040828403121561034f57600080fd5b6103596040610568565b905060006103678484610271565b825250602082013567ffffffffffffffff81111561038457600080fd5b610390848285016102ee565b60208301525092915050565b803561027c81610674565b6000602082840312156103b957600080fd5b60006103c58484610271565b949350505050565b6000602082840312156103df57600080fd5b813567ffffffffffffffff8111156103f657600080fd5b6103c584828501610282565b60006020828403121561041457600080fd5b60006103c5848461039c565b600061042c83836104b9565b9392505050565b61043c816105f0565b82525050565b600061044d826105de565b61045781856105e2565b935083602082028501610469856105d8565b8060005b858110156104a357848403895281516104868582610420565b9450610491836105d8565b60209a909a019992505060010161046d565b5091979650505050505050565b61043c816105fb565b60006104c4826105de565b6104ce81856105e2565b93506104de818560208601610623565b6104e781610653565b9093019392505050565b60006104fc826105de565b61050681856105eb565b9350610516818560208601610623565b9290920192915050565b600061042c82846104f1565b6020810161027c8284610433565b6020810161027c82846104b0565b6040810161055682856104b0565b81810360208301526103c58184610442565b60405181810167ffffffffffffffff8111828210171561058757600080fd5b604052919050565b600067ffffffffffffffff8211156105a657600080fd5b5060209081020190565b600067ffffffffffffffff8211156105c757600080fd5b506020601f91909101601f19160190565b60200190565b5190565b90815260200190565b919050565b600061027c826105fe565b90565b73ffffffffffffffffffffffffffffffffffffffff1690565b82818337506000910152565b60005b8381101561063e578181015183820152602001610626565b8381111561064d576000848401525b50505050565b601f01601f191690565b610666816105f0565b811461067157600080fd5b50565b610666816105fb56fea365627a7a72315820d09357d38d5990f6eaa4df5bc048bb0fbb49f33571d8e8e3c83c3914b3aeadf96c6578706572696d656e74616cf564736f6c63430005100040

Deployed ByteCode Sourcemap

291:1450:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;291:1450:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1236:122;;;:::i;:::-;;;;;;;;;;;;;;;;393:416;;;;;;;;;:::i;:::-;;;;;;;;;1104:126;;;:::i;840:116::-;;;;;;;;;:::i;1364:126::-;;;:::i;1496:118::-;;;:::i;1620:::-;;;:::i;:::-;;;;;;;;962:136;;;;;;;;;:::i;1236:122::-;1335:15;;1236:122::o;393:416::-;449:19;470:25;522:12;508:26;;570:5;:12;558:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;545:38:0;-1:-1:-1;598:9:0;594:208;617:5;:12;613:1;:16;594:208;;;652:12;666:16;686:5;692:1;686:8;;;;;;;;;;;;;;:15;;;:20;;707:5;713:1;707:8;;;;;;;;;;;;;;:17;;;686:39;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;651:74:0;;;;748:7;740:16;;;;;;787:3;771:10;782:1;771:13;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;631:3:0;;594:208;;;;393:416;;;:::o;1104:126::-;-1:-1:-1;;1205:12:0;:16;1195:27;;1104:126::o;840:116::-;936:12;;;;840:116::o;1364:126::-;1466:16;;1364:126::o;1496:118::-;1592:14;;1496:118::o;1620:::-;1716:14;;1620:118::o;962:136::-;1068:22;;962:136::o;5:130:-1:-;72:20;;97:33;72:20;97:33;;;57:78;;;;;174:723;;306:3;299:4;291:6;287:17;283:27;273:2;;324:1;321;314:12;273:2;361:6;348:20;383:95;398:79;470:6;398:79;;;383:95;;;506:21;;;550:4;538:17;;;;374:104;;-1:-1;563:14;;538:17;658:1;643:248;668:6;665:1;662:13;643:248;;;751:3;738:17;730:6;726:30;775:52;823:3;811:10;775:52;;;763:65;;-1:-1;851:4;842:14;;;;870;;;;;690:1;683:9;643:248;;;647:14;266:631;;;;;;;;906:432;;1003:3;996:4;988:6;984:17;980:27;970:2;;1021:1;1018;1011:12;970:2;1058:6;1045:20;1080:60;1095:44;1132:6;1095:44;;1080:60;1071:69;;1160:6;1153:5;1146:21;1196:4;1188:6;1184:17;1229:4;1222:5;1218:16;1264:3;1255:6;1250:3;1246:16;1243:25;1240:2;;;1281:1;1278;1271:12;1240:2;1291:41;1325:6;1320:3;1315;1291:41;;;963:375;;;;;;;;1374:554;;1478:4;1466:9;1461:3;1457:19;1453:30;1450:2;;;1496:1;1493;1486:12;1450:2;1514:20;1529:4;1514:20;;;1505:29;-1:-1;1586:1;1618:49;1663:3;1643:9;1618:49;;;1593:75;;-1:-1;1761:2;1746:18;;1733:32;1785:18;1774:30;;1771:2;;;1817:1;1814;1807:12;1771:2;1852:54;1902:3;1893:6;1882:9;1878:22;1852:54;;;1845:4;1838:5;1834:16;1827:80;1689:229;1444:484;;;;;1935:130;2002:20;;2027:33;2002:20;2027:33;;2072:241;;2176:2;2164:9;2155:7;2151:23;2147:32;2144:2;;;2192:1;2189;2182:12;2144:2;2227:1;2244:53;2289:7;2269:9;2244:53;;;2234:63;2138:175;-1:-1;;;;2138:175;2320:407;;2464:2;2452:9;2443:7;2439:23;2435:32;2432:2;;;2480:1;2477;2470:12;2432:2;2515:31;;2566:18;2555:30;;2552:2;;;2598:1;2595;2588:12;2552:2;2618:93;2703:7;2694:6;2683:9;2679:22;2618:93;;2734:241;;2838:2;2826:9;2817:7;2813:23;2809:32;2806:2;;;2854:1;2851;2844:12;2806:2;2889:1;2906:53;2951:7;2931:9;2906:53;;2983:177;;3094:60;3150:3;3142:6;3094:60;;;3080:74;3073:87;-1:-1;;;3073:87;3168:113;3251:24;3269:5;3251:24;;;3246:3;3239:37;3233:48;;;3315:888;;3470:59;3523:5;3470:59;;;3542:91;3626:6;3621:3;3542:91;;;3535:98;;3656:3;3698:4;3690:6;3686:17;3681:3;3677:27;3725:61;3780:5;3725:61;;;3806:7;3834:1;3819:345;3844:6;3841:1;3838:13;3819:345;;;3906:9;3900:4;3896:20;3891:3;3884:33;3951:6;3945:13;3973:74;4042:4;4027:13;3973:74;;;3965:82;;4064:65;4122:6;4064:65;;;4152:4;4143:14;;;;;4054:75;-1:-1;;3866:1;3859:9;3819:345;;;-1:-1;4177:4;;3449:754;-1:-1;;;;;;;3449:754;4211:113;4294:24;4312:5;4294:24;;4331:315;;4427:34;4455:5;4427:34;;;4473:60;4526:6;4521:3;4473:60;;;4466:67;;4538:52;4583:6;4578:3;4571:4;4564:5;4560:16;4538:52;;;4611:29;4633:6;4611:29;;;4602:39;;;;4407:239;-1:-1;;;4407:239;4653:348;;4777:34;4805:5;4777:34;;;4823:88;4904:6;4899:3;4823:88;;;4816:95;;4916:52;4961:6;4956:3;4949:4;4942:5;4938:16;4916:52;;;4980:16;;;;;4757:244;-1:-1;;4757:244;5128:254;;5268:89;5353:3;5344:6;5268:89;;5389:213;5507:2;5492:18;;5521:71;5496:9;5565:6;5521:71;;5609:213;5727:2;5712:18;;5741:71;5716:9;5785:6;5741:71;;6049:492;6255:2;6240:18;;6269:71;6244:9;6313:6;6269:71;;;6388:9;6382:4;6378:20;6373:2;6362:9;6358:18;6351:48;6413:118;6526:4;6517:6;6413:118;;6548:256;6610:2;6604:9;6636:17;;;6711:18;6696:34;;6732:22;;;6693:62;6690:2;;;6768:1;6765;6758:12;6690:2;6784;6777:22;6588:216;;-1:-1;6588:216;6811:319;;6985:18;6977:6;6974:30;6971:2;;;7017:1;7014;7007:12;6971:2;-1:-1;7052:4;7040:17;;;7105:15;;6908:222;7137:317;;7276:18;7268:6;7265:30;7262:2;;;7308:1;7305;7298:12;7262:2;-1:-1;7439:4;7375;7352:17;;;;-1:-1;;7348:33;7429:15;;7199:255;7461:156;7590:4;7581:14;;7538:79;7624:142;7732:12;;7703:63;8018:183;8141:19;;;8190:4;8181:14;;8134:67;8371:144;8506:3;8484:31;-1:-1;8484:31;8523:91;;8585:24;8603:5;8585:24;;8621:72;8683:5;8666:27;8700:121;8773:42;8762:54;;8745:76;8908:145;8989:6;8984:3;8979;8966:30;-1:-1;9045:1;9027:16;;9020:27;8959:94;9062:268;9127:1;9134:101;9148:6;9145:1;9142:13;9134:101;;;9215:11;;;9209:18;9196:11;;;9189:39;9170:2;9163:10;9134:101;;;9250:6;9247:1;9244:13;9241:2;;;9315:1;9306:6;9301:3;9297:16;9290:27;9241:2;9111:219;;;;;9338:97;9426:2;9406:14;-1:-1;;9402:28;;9386:49;9443:117;9512:24;9530:5;9512:24;;;9505:5;9502:35;9492:2;;9551:1;9548;9541:12;9492:2;9486:74;;9567:117;9636:24;9654:5;9636:24;

Swarm Source

bzzr://d09357d38d5990f6eaa4df5bc048bb0fbb49f33571d8e8e3c83c3914b3aeadf9
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.