Discover more of Apescan's tools and services in one place.
Contract Source Code:
File 1 of 1 : BatchRead.sol
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; contract BatchRead { struct Read { address to; bytes data; } function batchRead(Read[] calldata data) external view returns (bytes[] memory) { bytes[] memory results = new bytes[](data.length); for (uint256 i; i < data.length; i++) { (bool success, bytes memory result) = data[i].to.staticcall(data[i].data); require(success, "Static call failed"); results[i] = result; } return results; } function balance(address addr) external view returns (uint256) { return addr.balance; } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.