Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 29 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Run | 18785984 | 273 days ago | IN | 0.000027 ETH | 0.01722331 | ||||
Run | 18291073 | 342 days ago | IN | 0.000009 ETH | 0.00083866 | ||||
Run | 18284236 | 343 days ago | IN | 0.000009 ETH | 0.00087867 | ||||
Run | 18254037 | 347 days ago | IN | 0 ETH | 0.0012375 | ||||
Run | 18213277 | 353 days ago | IN | 0.000108 ETH | 0.01347128 | ||||
Run | 18182570 | 357 days ago | IN | 0 ETH | 0.00064895 | ||||
Run | 18182565 | 357 days ago | IN | 0 ETH | 0.00023087 | ||||
Run | 18093889 | 370 days ago | IN | 0.000009 ETH | 0.00240188 | ||||
Run | 18007418 | 382 days ago | IN | 0.000009 ETH | 0.00237606 | ||||
Run | 17848069 | 404 days ago | IN | 0.00009 ETH | 0.01354278 | ||||
Run | 17848047 | 404 days ago | IN | 0.00009 ETH | 0.0140803 | ||||
Run | 17759789 | 416 days ago | IN | 0.00009 ETH | 0.01521906 | ||||
Run | 17721815 | 422 days ago | IN | 0 ETH | 0.05432311 | ||||
Run | 17712262 | 423 days ago | IN | 0.000054 ETH | 0.01279592 | ||||
Run | 17522892 | 450 days ago | IN | 0.000009 ETH | 0.00391833 | ||||
Run | 17439163 | 461 days ago | IN | 0.00009 ETH | 0.01998238 | ||||
Run | 17396874 | 467 days ago | IN | 0.000045 ETH | 0.01079718 | ||||
Run | 17360176 | 472 days ago | IN | 0.000099 ETH | 0.02885041 | ||||
Run | 17303226 | 480 days ago | IN | 0.000054 ETH | 0.01829565 | ||||
Run | 17256528 | 487 days ago | IN | 0.000009 ETH | 0.00563547 | ||||
Run | 17233723 | 490 days ago | IN | 0.00009 ETH | 0.09750628 | ||||
Run | 17228504 | 491 days ago | IN | 0.000009 ETH | 0.0119372 | ||||
Run | 17226140 | 491 days ago | IN | 0.00009 ETH | 0.07247214 | ||||
Run | 17055369 | 515 days ago | IN | 0.000018 ETH | 0.00599976 | ||||
Run | 16898652 | 538 days ago | IN | 0 ETH | 0.00527292 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
18785984 | 273 days ago | 0.000009 ETH | ||||
18785984 | 273 days ago | 0.000009 ETH | ||||
18785984 | 273 days ago | 0.000009 ETH | ||||
18291073 | 342 days ago | 0.000009 ETH | ||||
18284236 | 343 days ago | 0.000009 ETH | ||||
18213277 | 353 days ago | 0.000009 ETH | ||||
18213277 | 353 days ago | 0.000009 ETH | ||||
18213277 | 353 days ago | 0.000009 ETH | ||||
18213277 | 353 days ago | 0.000009 ETH | ||||
18213277 | 353 days ago | 0.000009 ETH | ||||
18213277 | 353 days ago | 0.000009 ETH | ||||
18213277 | 353 days ago | 0.000009 ETH | ||||
18213277 | 353 days ago | 0.000009 ETH | ||||
18213277 | 353 days ago | 0.000009 ETH | ||||
18213277 | 353 days ago | 0.000009 ETH | ||||
18213277 | 353 days ago | 0.000009 ETH | ||||
18213277 | 353 days ago | 0.000009 ETH | ||||
18093889 | 370 days ago | 0.000009 ETH | ||||
18007418 | 382 days ago | 0.000009 ETH | ||||
17848069 | 404 days ago | 0.000009 ETH | ||||
17848069 | 404 days ago | 0.000009 ETH | ||||
17848069 | 404 days ago | 0.000009 ETH | ||||
17848069 | 404 days ago | 0.000009 ETH | ||||
17848069 | 404 days ago | 0.000009 ETH | ||||
17848069 | 404 days ago | 0.000009 ETH |
Loading...
Loading
Contract Name:
XEX_MULTICALL
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later 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 XEX_MULTICALL { struct Call { address target; bytes callData; uint fee; } function aggregate(Call[] memory calls) public view 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.staticcall(calls[i].callData); require(success); returnData[i] = ret; } } function run(Call[] memory calls) public payable returns (uint256 blockNumber, bytes[] memory returnData) { blockNumber = block.number; returnData = new bytes[](calls.length); bool success; bytes memory ret; for (uint256 i = 0; i < calls.length; i++) { if( calls[i].fee > 0 ) (success, ret) = calls[i].target.call{value : calls[i].fee}(calls[i].callData); else (success, ret) = calls[i].target.call(calls[i].callData); require(success,"call error"); 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; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"fee","type":"uint256"}],"internalType":"struct XEX_MULTICALL.Call[]","name":"calls","type":"tuple[]"}],"name":"aggregate","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes[]","name":"returnData","type":"bytes[]"}],"stateMutability":"view","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"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"},{"internalType":"uint256","name":"fee","type":"uint256"}],"internalType":"struct XEX_MULTICALL.Call[]","name":"calls","type":"tuple[]"}],"name":"run","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"bytes[]","name":"returnData","type":"bytes[]"}],"stateMutability":"payable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061096d806100206000396000f3fe6080604052600436106100865760003560e01c80634d2301cc116100595780634d2301cc1461010757806372425d9d1461012f57806386d516e814610142578063a8b0574e14610155578063ee82ac5e1461017057600080fd5b80630e8236781461008b5780630f28c97d146100b557806314977fa2146100d257806327e86d6e146100f2575b600080fd5b61009e6100993660046106d8565b61018f565b6040516100ac9291906107ce565b60405180910390f35b3480156100c157600080fd5b50425b6040519081526020016100ac565b3480156100de57600080fd5b5061009e6100ed3660046106d8565b610459565b3480156100fe57600080fd5b506100c46105cf565b34801561011357600080fd5b506100c46101223660046106b7565b6001600160a01b03163190565b34801561013b57600080fd5b50446100c4565b34801561014e57600080fd5b50456100c4565b34801561016157600080fd5b506040514181526020016100ac565b34801561017c57600080fd5b506100c461018b36600461079a565b4090565b8051439060609067ffffffffffffffff8111156101bc57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156101ef57816020015b60608152602001906001900390816101da5790505b5090506000606060005b855181101561045157600086828151811061022457634e487b7160e01b600052603260045260246000fd5b602002602001015160400151111561031d5785818151811061025657634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031686828151811061028b57634e487b7160e01b600052603260045260246000fd5b6020026020010151604001518783815181106102b757634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516040516102d091906107b2565b60006040518083038185875af1925050503d806000811461030d576040519150601f19603f3d011682016040523d82523d6000602084013e610312565b606091505b5090935091506103d4565b85818151811061033d57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031686828151811061037257634e487b7160e01b600052603260045260246000fd5b60200260200101516020015160405161038b91906107b2565b6000604051808303816000865af19150503d80600081146103c8576040519150601f19603f3d011682016040523d82523d6000602084013e6103cd565b606091505b5090935091505b826104125760405162461bcd60e51b815260206004820152600a60248201526931b0b6361032b93937b960b11b604482015260640160405180910390fd5b8184828151811061043357634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080610449906108f0565b9150506101f9565b505050915091565b8051439060609067ffffffffffffffff81111561048657634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156104b957816020015b60608152602001906001900390816104a45790505b50905060005b83518110156105c9576000808583815181106104eb57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031686848151811061052057634e487b7160e01b600052603260045260246000fd5b60200260200101516020015160405161053991906107b2565b600060405180830381855afa9150503d8060008114610574576040519150601f19603f3d011682016040523d82523d6000602084013e610579565b606091505b50915091508161058857600080fd5b808484815181106105a957634e487b7160e01b600052603260045260246000fd5b6020026020010181905250505080806105c1906108f0565b9150506104bf565b50915091565b60006105dc6001436108a9565b40905090565b80356001600160a01b03811681146105f957600080fd5b919050565b60006060828403121561060f578081fd5b61061761084f565b9050610622826105e2565b815260208083013567ffffffffffffffff8082111561064057600080fd5b818501915085601f83011261065457600080fd5b81358181111561066657610666610921565b610678601f8201601f19168501610878565b9150808252868482850101111561068e57600080fd5b808484018584013760008482840101525080838501525050506040820135604082015292915050565b6000602082840312156106c8578081fd5b6106d1826105e2565b9392505050565b600060208083850312156106ea578182fd5b823567ffffffffffffffff80821115610701578384fd5b818501915085601f830112610714578384fd5b81358181111561072657610726610921565b8060051b610735858201610878565b8281528581019085870183870188018b101561074f578889fd5b8893505b8484101561078c5780358681111561076957898afd5b6107778c8a838b01016105fe565b84525060019390930192918701918701610753565b509998505050505050505050565b6000602082840312156107ab578081fd5b5035919050565b600082516107c48184602087016108c0565b9190910192915050565b600060408201848352602060408185015281855180845260608601915060608160051b8701019350828701855b8281101561084157878603605f190184528151805180885261082281888a018985016108c0565b601f01601f1916969096018501955092840192908401906001016107fb565b509398975050505050505050565b6040516060810167ffffffffffffffff8111828210171561087257610872610921565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156108a1576108a1610921565b604052919050565b6000828210156108bb576108bb61090b565b500390565b60005b838110156108db5781810151838201526020016108c3565b838111156108ea576000848401525b50505050565b60006000198214156109045761090461090b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212201bd78e77e06c4f71d5b423f69360706d9ce91382d3eeb4baba2ad44465dc48b264736f6c63430008040033
Deployed Bytecode
0x6080604052600436106100865760003560e01c80634d2301cc116100595780634d2301cc1461010757806372425d9d1461012f57806386d516e814610142578063a8b0574e14610155578063ee82ac5e1461017057600080fd5b80630e8236781461008b5780630f28c97d146100b557806314977fa2146100d257806327e86d6e146100f2575b600080fd5b61009e6100993660046106d8565b61018f565b6040516100ac9291906107ce565b60405180910390f35b3480156100c157600080fd5b50425b6040519081526020016100ac565b3480156100de57600080fd5b5061009e6100ed3660046106d8565b610459565b3480156100fe57600080fd5b506100c46105cf565b34801561011357600080fd5b506100c46101223660046106b7565b6001600160a01b03163190565b34801561013b57600080fd5b50446100c4565b34801561014e57600080fd5b50456100c4565b34801561016157600080fd5b506040514181526020016100ac565b34801561017c57600080fd5b506100c461018b36600461079a565b4090565b8051439060609067ffffffffffffffff8111156101bc57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156101ef57816020015b60608152602001906001900390816101da5790505b5090506000606060005b855181101561045157600086828151811061022457634e487b7160e01b600052603260045260246000fd5b602002602001015160400151111561031d5785818151811061025657634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031686828151811061028b57634e487b7160e01b600052603260045260246000fd5b6020026020010151604001518783815181106102b757634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516040516102d091906107b2565b60006040518083038185875af1925050503d806000811461030d576040519150601f19603f3d011682016040523d82523d6000602084013e610312565b606091505b5090935091506103d4565b85818151811061033d57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031686828151811061037257634e487b7160e01b600052603260045260246000fd5b60200260200101516020015160405161038b91906107b2565b6000604051808303816000865af19150503d80600081146103c8576040519150601f19603f3d011682016040523d82523d6000602084013e6103cd565b606091505b5090935091505b826104125760405162461bcd60e51b815260206004820152600a60248201526931b0b6361032b93937b960b11b604482015260640160405180910390fd5b8184828151811061043357634e487b7160e01b600052603260045260246000fd5b60200260200101819052508080610449906108f0565b9150506101f9565b505050915091565b8051439060609067ffffffffffffffff81111561048657634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156104b957816020015b60608152602001906001900390816104a45790505b50905060005b83518110156105c9576000808583815181106104eb57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031686848151811061052057634e487b7160e01b600052603260045260246000fd5b60200260200101516020015160405161053991906107b2565b600060405180830381855afa9150503d8060008114610574576040519150601f19603f3d011682016040523d82523d6000602084013e610579565b606091505b50915091508161058857600080fd5b808484815181106105a957634e487b7160e01b600052603260045260246000fd5b6020026020010181905250505080806105c1906108f0565b9150506104bf565b50915091565b60006105dc6001436108a9565b40905090565b80356001600160a01b03811681146105f957600080fd5b919050565b60006060828403121561060f578081fd5b61061761084f565b9050610622826105e2565b815260208083013567ffffffffffffffff8082111561064057600080fd5b818501915085601f83011261065457600080fd5b81358181111561066657610666610921565b610678601f8201601f19168501610878565b9150808252868482850101111561068e57600080fd5b808484018584013760008482840101525080838501525050506040820135604082015292915050565b6000602082840312156106c8578081fd5b6106d1826105e2565b9392505050565b600060208083850312156106ea578182fd5b823567ffffffffffffffff80821115610701578384fd5b818501915085601f830112610714578384fd5b81358181111561072657610726610921565b8060051b610735858201610878565b8281528581019085870183870188018b101561074f578889fd5b8893505b8484101561078c5780358681111561076957898afd5b6107778c8a838b01016105fe565b84525060019390930192918701918701610753565b509998505050505050505050565b6000602082840312156107ab578081fd5b5035919050565b600082516107c48184602087016108c0565b9190910192915050565b600060408201848352602060408185015281855180845260608601915060608160051b8701019350828701855b8281101561084157878603605f190184528151805180885261082281888a018985016108c0565b601f01601f1916969096018501955092840192908401906001016107fb565b509398975050505050505050565b6040516060810167ffffffffffffffff8111828210171561087257610872610921565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156108a1576108a1610921565b604052919050565b6000828210156108bb576108bb61090b565b500390565b60005b838110156108db5781810151838201526020016108c3565b838111156108ea576000848401525b50505050565b60006000198214156109045761090461090b565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212201bd78e77e06c4f71d5b423f69360706d9ce91382d3eeb4baba2ad44465dc48b264736f6c63430008040033
Loading...
Loading
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.