Discover more of Apescan's tools and services in one place.
Contract Source Code:
File 1 of 1 : BatchTransfer
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IERC721 { function safeTransferFrom( address from, address to, uint256 tokenId ) external; } contract BatchTransfer { struct TransferData { address recipient; uint256[] tokenIds; } function batchTransfer( address collection, TransferData[] calldata transfers ) external { require(collection != address(0), "Invalid collection address"); IERC721 erc721 = IERC721(collection); for (uint256 i = 0; i < transfers.length; i++) { TransferData calldata transferData = transfers[i]; address recipient = transferData.recipient; uint256[] calldata tokenIds = transferData.tokenIds; for (uint256 j = 0; j < tokenIds.length; j++) { erc721.safeTransferFrom(msg.sender, recipient, tokenIds[j]); } } } }
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.