Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Latest 10 from a total of 10 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Multi Send | 3407926 | 193 days ago | IN | 0 ETH | 0.0000155 | ||||
Multi Send | 3407899 | 193 days ago | IN | 0 ETH | 0.00003102 | ||||
Multi Send | 3407576 | 193 days ago | IN | 0 ETH | 0.00002421 | ||||
Multi Send | 3407079 | 193 days ago | IN | 0 ETH | 0.00003425 | ||||
Multi Send | 2860523 | 256 days ago | IN | 0 ETH | 0.00947549 | ||||
Multi Send | 2860328 | 256 days ago | IN | 0 ETH | 0.00939217 | ||||
Multi Send | 2125419 | 333 days ago | IN | 0 ETH | 0.00281789 | ||||
Multi Send | 2018817 | 338 days ago | IN | 0 ETH | 0.00101608 | ||||
Multi Send | 1670606 | 354 days ago | IN | 0 ETH | 0.00383504 | ||||
Multi Send | 389517 | 400 days ago | IN | 0 ETH | 0.00023468 |
Latest 25 internal transactions (View All)
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
6669320 | 16 days ago | 0 ETH | ||||
6567106 | 27 days ago | 0 ETH | ||||
4572884 | 116 days ago | 0 ETH | ||||
4179655 | 156 days ago | 0 ETH | ||||
3997559 | 164 days ago | 0 ETH | ||||
3997470 | 164 days ago | 0 ETH | ||||
3997408 | 164 days ago | 0 ETH | ||||
3997306 | 164 days ago | 0 ETH | ||||
3988040 | 165 days ago | 0 ETH | ||||
3956983 | 166 days ago | 0 ETH | ||||
3956962 | 166 days ago | 0 ETH | ||||
3956925 | 166 days ago | 0 ETH | ||||
3956918 | 166 days ago | 0 ETH | ||||
3956892 | 166 days ago | 0 ETH | ||||
3956880 | 166 days ago | 0 ETH | ||||
3956748 | 166 days ago | 0 ETH | ||||
3956717 | 166 days ago | 0 ETH | ||||
3956664 | 166 days ago | 0 ETH | ||||
3956653 | 166 days ago | 0 ETH | ||||
3956621 | 166 days ago | 0 ETH | ||||
3956585 | 166 days ago | 0 ETH | ||||
3956570 | 166 days ago | 0 ETH | ||||
3956420 | 166 days ago | 0 ETH | ||||
3956378 | 166 days ago | 0 ETH | ||||
3956257 | 166 days ago | 0 ETH |
Loading...
Loading
Contract Name:
MultiSendCallOnly
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.7.0 <0.9.0; /// @title Multi Send Call Only - Allows to batch multiple transactions into one, but only calls /// @author Stefan George - <[email protected]> /// @author Richard Meissner - <[email protected]> /// @notice The guard logic is not required here as this contract doesn't support nested delegate calls contract MultiSendCallOnly { /// @dev Sends multiple transactions and reverts all if one fails. /// @param transactions Encoded transactions. Each transaction is encoded as a packed bytes of /// operation has to be uint8(0) in this version (=> 1 byte), /// to as a address (=> 20 bytes), /// value as a uint256 (=> 32 bytes), /// data length as a uint256 (=> 32 bytes), /// data as bytes. /// see abi.encodePacked for more information on packed encoding /// @notice The code is for most part the same as the normal MultiSend (to keep compatibility), /// but reverts if a transaction tries to use a delegatecall. /// @notice This method is payable as delegatecalls keep the msg.value from the previous call /// If the calling method (e.g. execTransaction) received ETH this would revert otherwise function multiSend(bytes memory transactions) public payable { // solhint-disable-next-line no-inline-assembly assembly { let length := mload(transactions) let i := 0x20 for { // Pre block is not used in "while mode" } lt(i, length) { // Post block is not used in "while mode" } { // First byte of the data is the operation. // We shift by 248 bits (256 - 8 [operation byte]) it right since mload will always load 32 bytes (a word). // This will also zero out unused data. let operation := shr(0xf8, mload(add(transactions, i))) // We offset the load address by 1 byte (operation byte) // We shift it right by 96 bits (256 - 160 [20 address bytes]) to right-align the data and zero out unused data. let to := shr(0x60, mload(add(transactions, add(i, 0x01)))) // We offset the load address by 21 byte (operation byte + 20 address bytes) let value := mload(add(transactions, add(i, 0x15))) // We offset the load address by 53 byte (operation byte + 20 address bytes + 32 value bytes) let dataLength := mload(add(transactions, add(i, 0x35))) // We offset the load address by 85 byte (operation byte + 20 address bytes + 32 value bytes + 32 data length bytes) let data := add(transactions, add(i, 0x55)) let success := 0 switch operation case 0 { success := call(gas(), to, value, data, dataLength, 0, 0) } // This version does not allow delegatecalls case 1 { revert(0, 0) } if eq(success, 0) { revert(0, 0) } // Next entry starts at 85 byte + data length i := add(i, add(0x55, dataLength)) } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
[{"inputs":[{"internalType":"bytes","name":"transactions","type":"bytes"}],"name":"multiSend","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061019a806100206000396000f3fe60806040526004361061001e5760003560e01c80638d80ff0a14610023575b600080fd5b6100dc6004803603602081101561003957600080fd5b810190808035906020019064010000000081111561005657600080fd5b82018360208201111561006857600080fd5b8035906020019184600183028401116401000000008311171561008a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506100de565b005b805160205b8181101561015f578083015160f81c6001820184015160601c60158301850151603584018601516055850187016000856000811461012857600181146101385761013d565b6000808585888a5af1915061013d565b600080fd5b50600081141561014c57600080fd5b82605501870196505050505050506100e3565b50505056fea264697066735822122035246402746c96964495cae5b36461fd44dfb89f8e6cf6f6b8d60c0aa89f414864736f6c63430007060033
Deployed Bytecode
0x60806040526004361061001e5760003560e01c80638d80ff0a14610023575b600080fd5b6100dc6004803603602081101561003957600080fd5b810190808035906020019064010000000081111561005657600080fd5b82018360208201111561006857600080fd5b8035906020019184600183028401116401000000008311171561008a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506100de565b005b805160205b8181101561015f578083015160f81c6001820184015160601c60158301850151603584018601516055850187016000856000811461012857600181146101385761013d565b6000808585888a5af1915061013d565b600080fd5b50600081141561014c57600080fd5b82605501870196505050505050506100e3565b50505056fea264697066735822122035246402746c96964495cae5b36461fd44dfb89f8e6cf6f6b8d60c0aa89f414864736f6c63430007060033
Loading...
Loading
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.