ETH Price: $3,410.18 (+2.96%)

Contract

0x3917C5b45C69b02bbf53fC7fd86Da0a634A48E2e
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040157194532022-10-10 18:20:59775 days ago1665426059IN
 Create: BatchTransfer
0 ETH0.0091570734.90616502

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

Contract Source Code Verified (Exact Match)

Contract Name:
BatchTransfer

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 1 : BatchTransfer.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

interface ERC721Partial {
    function transferFrom(address from, address to, uint256 tokenId) external;
}

contract BatchTransfer {
    /// @notice Tokens on the given ERC-721 contract are transferred from you to a recipient.
    ///         Don't forget to execute setApprovalForAll first to authorize this contract.
    /// @param  tokenContract An ERC-721 contract
    /// @param  from          Who sends the tokens?
    /// @param  recipient     Who gets the tokens?
    /// @param  tokenIds      Which token IDs are transferred?
    function batchTransfer(ERC721Partial tokenContract, address from, address recipient, uint256[] calldata tokenIds) external {
        for (uint256 index; index < tokenIds.length; index++) {
            tokenContract.transferFrom(from, recipient, tokenIds[index]);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ERC721Partial","name":"tokenContract","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506103cc806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063e3456fbb14610030575b600080fd5b61004a60048036038101906100459190610208565b61004c565b005b60005b828290508110156100f5578573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686868681811061008b5761008a610290565b5b905060200201356040518463ffffffff1660e01b81526004016100b0939291906102e7565b600060405180830381600087803b1580156100ca57600080fd5b505af11580156100de573d6000803e3d6000fd5b5050505080806100ed9061034d565b91505061004f565b505050505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061013282610107565b9050919050565b600061014482610127565b9050919050565b61015481610139565b811461015f57600080fd5b50565b6000813590506101718161014b565b92915050565b61018081610127565b811461018b57600080fd5b50565b60008135905061019d81610177565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126101c8576101c76101a3565b5b8235905067ffffffffffffffff8111156101e5576101e46101a8565b5b602083019150836020820283011115610201576102006101ad565b5b9250929050565b600080600080600060808688031215610224576102236100fd565b5b600061023288828901610162565b95505060206102438882890161018e565b94505060406102548882890161018e565b935050606086013567ffffffffffffffff81111561027557610274610102565b5b610281888289016101b2565b92509250509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6102c881610127565b82525050565b6000819050919050565b6102e1816102ce565b82525050565b60006060820190506102fc60008301866102bf565b61030960208301856102bf565b61031660408301846102d8565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610358826102ce565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561038b5761038a61031e565b5b60018201905091905056fea264697066735822122004ba62a05f18ca7456adfa5ce7d83ada1d725cee8f4ced56a74ac1489557954b64736f6c634300080a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063e3456fbb14610030575b600080fd5b61004a60048036038101906100459190610208565b61004c565b005b60005b828290508110156100f5578573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686868681811061008b5761008a610290565b5b905060200201356040518463ffffffff1660e01b81526004016100b0939291906102e7565b600060405180830381600087803b1580156100ca57600080fd5b505af11580156100de573d6000803e3d6000fd5b5050505080806100ed9061034d565b91505061004f565b505050505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061013282610107565b9050919050565b600061014482610127565b9050919050565b61015481610139565b811461015f57600080fd5b50565b6000813590506101718161014b565b92915050565b61018081610127565b811461018b57600080fd5b50565b60008135905061019d81610177565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126101c8576101c76101a3565b5b8235905067ffffffffffffffff8111156101e5576101e46101a8565b5b602083019150836020820283011115610201576102006101ad565b5b9250929050565b600080600080600060808688031215610224576102236100fd565b5b600061023288828901610162565b95505060206102438882890161018e565b94505060406102548882890161018e565b935050606086013567ffffffffffffffff81111561027557610274610102565b5b610281888289016101b2565b92509250509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6102c881610127565b82525050565b6000819050919050565b6102e1816102ce565b82525050565b60006060820190506102fc60008301866102bf565b61030960208301856102bf565b61031660408301846102d8565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610358826102ce565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561038b5761038a61031e565b5b60018201905091905056fea264697066735822122004ba62a05f18ca7456adfa5ce7d83ada1d725cee8f4ced56a74ac1489557954b64736f6c634300080a0033

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  ]

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.