S Price: $0.862694 (-0.34%)

Contract

0x9482c407d32204462D8CBbC0755e96C39B79878E

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Multicall

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
Yes with 10000 runs

Other Settings:
paris EvmVersion
File 1 of 1 : Multicall.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.22;

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;
    }
}

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

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

608060405234801561001057600080fd5b5061069e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806372425d9d1161005b57806372425d9d146100f357806386d516e8146100f9578063a8b0574e146100ff578063ee82ac5e1461010d57600080fd5b80630f28c97d1461008d578063252dba42146100a257806327e86d6e146100c35780634d2301cc146100cb575b600080fd5b425b6040519081526020015b60405180910390f35b6100b56100b0366004610344565b61011f565b6040516100999291906104e4565b61008f610261565b61008f6100d93660046105a2565b73ffffffffffffffffffffffffffffffffffffffff163190565b4461008f565b4561008f565b604051418152602001610099565b61008f61011b3660046105c4565b4090565b8051439060609067ffffffffffffffff81111561013e5761013e610274565b60405190808252806020026020018201604052801561017157816020015b606081526020019060019003908161015c5790505b50905060005b835181101561025b57600080858381518110610195576101956105dd565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff168684815181106101c9576101c96105dd565b6020026020010151602001516040516101e2919061060c565b6000604051808303816000865af19150503d806000811461021f576040519150601f19603f3d011682016040523d82523d6000602084013e610224565b606091505b50915091508161023357600080fd5b80848481518110610246576102466105dd565b60209081029190910101525050600101610177565b50915091565b600061026e600143610628565b40905090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156102c6576102c6610274565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561031357610313610274565b604052919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461033f57600080fd5b919050565b6000602080838503121561035757600080fd5b823567ffffffffffffffff8082111561036f57600080fd5b818501915085601f83011261038357600080fd5b81358181111561039557610395610274565b8060051b6103a48582016102cc565b91825283810185019185810190898411156103be57600080fd5b86860192505b838310156104b3578235858111156103dc5760008081fd5b860160407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0828d0381018213156104135760008081fd5b61041b6102a3565b6104268b850161031b565b8152828401358981111561043a5760008081fd5b8085019450508d603f8501126104505760008081fd5b8a8401358981111561046457610464610274565b6104748c84601f840116016102cc565b92508083528e8482870101111561048b5760008081fd5b808486018d85013760009083018c0152808b01919091528452505091860191908601906103c4565b9998505050505050505050565b60005b838110156104db5781810151838201526020016104c3565b50506000910152565b600060408201848352602060408185015281855180845260608601915060608160051b870101935082870160005b82811015610594577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08887030184528151805180885261055781888a018985016104c0565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01696909601850195509284019290840190600101610512565b509398975050505050505050565b6000602082840312156105b457600080fd5b6105bd8261031b565b9392505050565b6000602082840312156105d657600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000825161061e8184602087016104c0565b9190910192915050565b81810381811115610662577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9291505056fea2646970667358221220a78d0dd0fc9179d0bc4f72d96208b4df5d09b989d02596298733216318f3957a64736f6c63430008160033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c806372425d9d1161005b57806372425d9d146100f357806386d516e8146100f9578063a8b0574e146100ff578063ee82ac5e1461010d57600080fd5b80630f28c97d1461008d578063252dba42146100a257806327e86d6e146100c35780634d2301cc146100cb575b600080fd5b425b6040519081526020015b60405180910390f35b6100b56100b0366004610344565b61011f565b6040516100999291906104e4565b61008f610261565b61008f6100d93660046105a2565b73ffffffffffffffffffffffffffffffffffffffff163190565b4461008f565b4561008f565b604051418152602001610099565b61008f61011b3660046105c4565b4090565b8051439060609067ffffffffffffffff81111561013e5761013e610274565b60405190808252806020026020018201604052801561017157816020015b606081526020019060019003908161015c5790505b50905060005b835181101561025b57600080858381518110610195576101956105dd565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff168684815181106101c9576101c96105dd565b6020026020010151602001516040516101e2919061060c565b6000604051808303816000865af19150503d806000811461021f576040519150601f19603f3d011682016040523d82523d6000602084013e610224565b606091505b50915091508161023357600080fd5b80848481518110610246576102466105dd565b60209081029190910101525050600101610177565b50915091565b600061026e600143610628565b40905090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156102c6576102c6610274565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561031357610313610274565b604052919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461033f57600080fd5b919050565b6000602080838503121561035757600080fd5b823567ffffffffffffffff8082111561036f57600080fd5b818501915085601f83011261038357600080fd5b81358181111561039557610395610274565b8060051b6103a48582016102cc565b91825283810185019185810190898411156103be57600080fd5b86860192505b838310156104b3578235858111156103dc5760008081fd5b860160407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0828d0381018213156104135760008081fd5b61041b6102a3565b6104268b850161031b565b8152828401358981111561043a5760008081fd5b8085019450508d603f8501126104505760008081fd5b8a8401358981111561046457610464610274565b6104748c84601f840116016102cc565b92508083528e8482870101111561048b5760008081fd5b808486018d85013760009083018c0152808b01919091528452505091860191908601906103c4565b9998505050505050505050565b60005b838110156104db5781810151838201526020016104c3565b50506000910152565b600060408201848352602060408185015281855180845260608601915060608160051b870101935082870160005b82811015610594577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08887030184528151805180885261055781888a018985016104c0565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01696909601850195509284019290840190600101610512565b509398975050505050505050565b6000602082840312156105b457600080fd5b6105bd8261031b565b9392505050565b6000602082840312156105d657600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000825161061e8184602087016104c0565b9190910192915050565b81810381811115610662577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9291505056fea2646970667358221220a78d0dd0fc9179d0bc4f72d96208b4df5d09b989d02596298733216318f3957a64736f6c63430008160033

Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits

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.