ETH Price: $3,385.60 (+1.14%)

Contract

0x3FB35670c55D2452a63C2464bDcFbf0579aFbadb
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Ether188751902023-12-27 6:23:11362 days ago1703658191IN
0x3FB35670...579aFbadb
0.03 ETH0.0021805723.61798579
Transfer Ether185105182023-11-06 4:18:59413 days ago1699244339IN
0x3FB35670...579aFbadb
0.068 ETH0.0079063528.50833575
Transfer Ether185105062023-11-06 4:16:23413 days ago1699244183IN
0x3FB35670...579aFbadb
0.025 ETH0.0023010930.72596211
Transfer Ether185030172023-11-05 3:04:59415 days ago1699153499IN
0x3FB35670...579aFbadb
0.012 ETH0.0021254212.93160166
Transfer Ether176460452023-07-08 2:20:59535 days ago1688782859IN
0x3FB35670...579aFbadb
0.008 ETH0.000959414.91268433
Transfer Ether176460082023-07-08 2:13:35535 days ago1688782415IN
0x3FB35670...579aFbadb
0.004 ETH0.0011357317.64024577
Transfer Ether176458372023-07-08 1:38:59535 days ago1688780339IN
0x3FB35670...579aFbadb
0.016 ETH0.0012638516.88943359
Transfer Ether174732612023-06-13 19:51:23559 days ago1686685883IN
0x3FB35670...579aFbadb
0.01 ETH0.0022327813.58383161
Transfer Ether174732492023-06-13 19:48:59559 days ago1686685739IN
0x3FB35670...579aFbadb
0.015 ETH0.0035664114.71737046
Transfer Ether171381592023-04-27 14:38:59606 days ago1682606339IN
0x3FB35670...579aFbadb
0.05 ETH0.0010916633.23480073
Transfer Ether170048262023-04-08 16:22:23625 days ago1680970943IN
0x3FB35670...579aFbadb
0.0175 ETH0.0039885719.95495566
Transfer Ether170039162023-04-08 13:16:47625 days ago1680959807IN
0x3FB35670...579aFbadb
0.07 ETH0.0069144918.31930805
Transfer Ether169980762023-04-07 17:25:59626 days ago1680888359IN
0x3FB35670...579aFbadb
0.091 ETH0.0054604832.92245644
Transfer ERC721169914232023-04-06 18:49:35627 days ago1680806975IN
0x3FB35670...579aFbadb
0 ETH0.0015193629.60230886
Transfer ERC721169914232023-04-06 18:49:35627 days ago1680806975IN
0x3FB35670...579aFbadb
0 ETH0.0015193629.60230886
Transfer ERC721169914222023-04-06 18:49:23627 days ago1680806963IN
0x3FB35670...579aFbadb
0 ETH0.0014606928.45922341
Transfer ERC721169914212023-04-06 18:49:11627 days ago1680806951IN
0x3FB35670...579aFbadb
0 ETH0.0015076529.37411144
Transfer ERC721169914212023-04-06 18:49:11627 days ago1680806951IN
0x3FB35670...579aFbadb
0 ETH0.0015076529.37411144
Transfer ERC721169914212023-04-06 18:49:11627 days ago1680806951IN
0x3FB35670...579aFbadb
0 ETH0.0015076529.37411144
Transfer ERC721169914062023-04-06 18:46:11627 days ago1680806771IN
0x3FB35670...579aFbadb
0 ETH0.0016498832.14525041
Transfer ERC721169914062023-04-06 18:46:11627 days ago1680806771IN
0x3FB35670...579aFbadb
0 ETH0.0016498832.14525041
Transfer ERC721169914062023-04-06 18:46:11627 days ago1680806771IN
0x3FB35670...579aFbadb
0 ETH0.0016498832.14525041
Transfer ERC721169914062023-04-06 18:46:11627 days ago1680806771IN
0x3FB35670...579aFbadb
0 ETH0.0016498832.14525041
Transfer ERC721169914052023-04-06 18:45:59627 days ago1680806759IN
0x3FB35670...579aFbadb
0 ETH0.0016894332.91570754
Transfer ERC721169914052023-04-06 18:45:59627 days ago1680806759IN
0x3FB35670...579aFbadb
0 ETH0.0016894332.91570754
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
188751902023-12-27 6:23:11362 days ago1703658191
0x3FB35670...579aFbadb
2 wei
188751902023-12-27 6:23:11362 days ago1703658191
0x3FB35670...579aFbadb
0.005 ETH
188751902023-12-27 6:23:11362 days ago1703658191
0x3FB35670...579aFbadb
0.005 ETH
188751902023-12-27 6:23:11362 days ago1703658191
0x3FB35670...579aFbadb
0.005 ETH
188751902023-12-27 6:23:11362 days ago1703658191
0x3FB35670...579aFbadb
0.005 ETH
188751902023-12-27 6:23:11362 days ago1703658191
0x3FB35670...579aFbadb
0.005 ETH
188751902023-12-27 6:23:11362 days ago1703658191
0x3FB35670...579aFbadb
0.005 ETH
185105182023-11-06 4:18:59413 days ago1699244339
0x3FB35670...579aFbadb
0.008 ETH
185105182023-11-06 4:18:59413 days ago1699244339
0x3FB35670...579aFbadb
0.008 ETH
185105182023-11-06 4:18:59413 days ago1699244339
0x3FB35670...579aFbadb
0.008 ETH
185105182023-11-06 4:18:59413 days ago1699244339
0x3FB35670...579aFbadb
0.008 ETH
185105182023-11-06 4:18:59413 days ago1699244339
0x3FB35670...579aFbadb
0.008 ETH
185105182023-11-06 4:18:59413 days ago1699244339
0x3FB35670...579aFbadb
0.008 ETH
185105182023-11-06 4:18:59413 days ago1699244339
0x3FB35670...579aFbadb
0.005 ETH
185105182023-11-06 4:18:59413 days ago1699244339
0x3FB35670...579aFbadb
0.005 ETH
185105182023-11-06 4:18:59413 days ago1699244339
0x3FB35670...579aFbadb
0.005 ETH
185105182023-11-06 4:18:59413 days ago1699244339
0x3FB35670...579aFbadb
0.005 ETH
185105062023-11-06 4:16:23413 days ago1699244183
0x3FB35670...579aFbadb
0.005 ETH
185105062023-11-06 4:16:23413 days ago1699244183
0x3FB35670...579aFbadb
0.005 ETH
185105062023-11-06 4:16:23413 days ago1699244183
0x3FB35670...579aFbadb
0.005 ETH
185105062023-11-06 4:16:23413 days ago1699244183
0x3FB35670...579aFbadb
0.005 ETH
185105062023-11-06 4:16:23413 days ago1699244183
0x3FB35670...579aFbadb
0.005 ETH
185030172023-11-05 3:04:59415 days ago1699153499
0x3FB35670...579aFbadb
0.003 ETH
185030172023-11-05 3:04:59415 days ago1699153499
0x3FB35670...579aFbadb
0.003 ETH
185030172023-11-05 3:04:59415 days ago1699153499
0x3FB35670...579aFbadb
0.003 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BatchTransfer

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion
File 1 of 3 : BatchTransfer.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;

import {IERC20} from './IERC20.sol';
import {IERC721} from './IERC721.sol';

error TransferFailed();

contract BatchTransfer {

    // Requires 'approve' before transfer
    function transferERC20(IERC20 token, address[] calldata recipients, uint256[] calldata values) external {
        for (uint256 i = 0; i < recipients.length; i++) {
            bool success = token.transferFrom(msg.sender, recipients[i], values[i]);

            if (!success) {
                revert TransferFailed();
            }
        }
    }

    // Requires 'setApprovalForAll' before transfer
    function transferERC721(IERC721 collection, address recipient, uint256[] calldata tokenIds) external {
        for (uint256 i; i < tokenIds.length; i++) {
            collection.safeTransferFrom(msg.sender, recipient, tokenIds[i]);
        }
    }

    function transferEther(address[] calldata recipients, uint256[] calldata values) external payable {
        uint256 refund = msg.value;

        for (uint256 i = 0; i < recipients.length; i++) {
            (bool success, ) = payable(recipients[i]).call{value: values[i]}('');

            if (!success) {
                revert TransferFailed();
            }

            refund -= values[i];
        }

        // Refund remaining ETH
        if (refund > 0) {
            (bool success, ) = payable(msg.sender).call{value: refund}('');

            if (!success) {
                revert TransferFailed();
            }
        }
    }
}

File 2 of 3 : IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;

interface IERC20 {
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

File 3 of 3 : IERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;

interface IERC721 {
    function safeTransferFrom(address from, address to, uint256 tokenId) external;
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"transferERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"collection","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"transferERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"transferEther","outputs":[],"stateMutability":"payable","type":"function"}]

608060405234801561001057600080fd5b50610674806100206000396000f3fe6080604052600436106100345760003560e01c80638ca5e3961461003957806398a898971461005b578063fa558b711461006e575b600080fd5b34801561004557600080fd5b50610059610054366004610452565b61008e565b005b6100596100693660046104b7565b61015d565b34801561007a57600080fd5b50610059610089366004610517565b6102cd565b60005b8181101561015657846001600160a01b03166342842e0e33868686868181106100bc576100bc61059a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561012b57600080fd5b505af115801561013f573d6000803e3d6000fd5b50505050808061014e906105c6565b915050610091565b5050505050565b3460005b8481101561025557600086868381811061017d5761017d61059a565b905060200201602081019061019291906105e1565b6001600160a01b03168585848181106101ad576101ad61059a565b9050602002013560405160006040518083038185875af1925050503d80600081146101f4576040519150601f19603f3d011682016040523d82523d6000602084013e6101f9565b606091505b505090508061021b576040516312171d8360e31b815260040160405180910390fd5b84848381811061022d5761022d61059a565b905060200201358361023f9190610605565b925050808061024d906105c6565b915050610161565b50801561015657604051600090339083908381818185875af1925050503d806000811461029e576040519150601f19603f3d011682016040523d82523d6000602084013e6102a3565b606091505b50509050806102c5576040516312171d8360e31b815260040160405180910390fd5b505050505050565b60005b838110156102c5576000866001600160a01b03166323b872dd338888868181106102fc576102fc61059a565b905060200201602081019061031191906105e1565b8787878181106103235761032361059a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b039586166004820152949093166024850152506020909102013560448201526064016020604051808303816000875af1158015610397573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bb919061061c565b9050806103db576040516312171d8360e31b815260040160405180910390fd5b50806103e6816105c6565b9150506102d0565b6001600160a01b038116811461040357600080fd5b50565b60008083601f84011261041857600080fd5b50813567ffffffffffffffff81111561043057600080fd5b6020830191508360208260051b850101111561044b57600080fd5b9250929050565b6000806000806060858703121561046857600080fd5b8435610473816103ee565b93506020850135610483816103ee565b9250604085013567ffffffffffffffff81111561049f57600080fd5b6104ab87828801610406565b95989497509550505050565b600080600080604085870312156104cd57600080fd5b843567ffffffffffffffff808211156104e557600080fd5b6104f188838901610406565b9096509450602087013591508082111561050a57600080fd5b506104ab87828801610406565b60008060008060006060868803121561052f57600080fd5b853561053a816103ee565b9450602086013567ffffffffffffffff8082111561055757600080fd5b61056389838a01610406565b9096509450604088013591508082111561057c57600080fd5b5061058988828901610406565b969995985093965092949392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156105da576105da6105b0565b5060010190565b6000602082840312156105f357600080fd5b81356105fe816103ee565b9392505050565b600082821015610617576106176105b0565b500390565b60006020828403121561062e57600080fd5b815180151581146105fe57600080fdfea26469706673582212201d2289cd211d51d70a4721f80788d0e9eaf898e168a6465b1248a41195c1da2064736f6c634300080c0033

Deployed Bytecode

0x6080604052600436106100345760003560e01c80638ca5e3961461003957806398a898971461005b578063fa558b711461006e575b600080fd5b34801561004557600080fd5b50610059610054366004610452565b61008e565b005b6100596100693660046104b7565b61015d565b34801561007a57600080fd5b50610059610089366004610517565b6102cd565b60005b8181101561015657846001600160a01b03166342842e0e33868686868181106100bc576100bc61059a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561012b57600080fd5b505af115801561013f573d6000803e3d6000fd5b50505050808061014e906105c6565b915050610091565b5050505050565b3460005b8481101561025557600086868381811061017d5761017d61059a565b905060200201602081019061019291906105e1565b6001600160a01b03168585848181106101ad576101ad61059a565b9050602002013560405160006040518083038185875af1925050503d80600081146101f4576040519150601f19603f3d011682016040523d82523d6000602084013e6101f9565b606091505b505090508061021b576040516312171d8360e31b815260040160405180910390fd5b84848381811061022d5761022d61059a565b905060200201358361023f9190610605565b925050808061024d906105c6565b915050610161565b50801561015657604051600090339083908381818185875af1925050503d806000811461029e576040519150601f19603f3d011682016040523d82523d6000602084013e6102a3565b606091505b50509050806102c5576040516312171d8360e31b815260040160405180910390fd5b505050505050565b60005b838110156102c5576000866001600160a01b03166323b872dd338888868181106102fc576102fc61059a565b905060200201602081019061031191906105e1565b8787878181106103235761032361059a565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b1681526001600160a01b039586166004820152949093166024850152506020909102013560448201526064016020604051808303816000875af1158015610397573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bb919061061c565b9050806103db576040516312171d8360e31b815260040160405180910390fd5b50806103e6816105c6565b9150506102d0565b6001600160a01b038116811461040357600080fd5b50565b60008083601f84011261041857600080fd5b50813567ffffffffffffffff81111561043057600080fd5b6020830191508360208260051b850101111561044b57600080fd5b9250929050565b6000806000806060858703121561046857600080fd5b8435610473816103ee565b93506020850135610483816103ee565b9250604085013567ffffffffffffffff81111561049f57600080fd5b6104ab87828801610406565b95989497509550505050565b600080600080604085870312156104cd57600080fd5b843567ffffffffffffffff808211156104e557600080fd5b6104f188838901610406565b9096509450602087013591508082111561050a57600080fd5b506104ab87828801610406565b60008060008060006060868803121561052f57600080fd5b853561053a816103ee565b9450602086013567ffffffffffffffff8082111561055757600080fd5b61056389838a01610406565b9096509450604088013591508082111561057c57600080fd5b5061058988828901610406565b969995985093965092949392505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156105da576105da6105b0565b5060010190565b6000602082840312156105f357600080fd5b81356105fe816103ee565b9392505050565b600082821015610617576106176105b0565b500390565b60006020828403121561062e57600080fd5b815180151581146105fe57600080fdfea26469706673582212201d2289cd211d51d70a4721f80788d0e9eaf898e168a6465b1248a41195c1da2064736f6c634300080c0033

Block Transaction Difficulty 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
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.