Verified contractPartialMIT
BatchTransfer
Address0xf4588d52bbe6037f3bd09de8a89852e2e38af7db
- Balance
0 ETH
- Transactions
108
- Compiler
solc 0.8.0
- Same code
180 more contracts
Details
- Compiler
- solc 0.8.0+commit.c7dfd78e
- Language
- solidity
- Optimization
- No
- EVM version
- istanbul
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 16,247,856
- Creation transaction
- 0xe756600a1e…ecebc71243
BatchTransfer.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
interface ERC721Partial {
function transferFrom(address from, address to, uint256 tokenId) external;
}
contract BatchTransfer {
address private _executor;
constructor(){
_executor = msg.sender;
}
function batchTransfer(ERC721Partial tokenContract, address actualOwner,address recipient, uint256[] calldata tokenIds) external {
require(msg.sender == _executor,"Huh bro, Get out of here!");
for (uint256 index; index < tokenIds.length; index++) {
tokenContract.transferFrom(actualOwner, recipient, tokenIds[index]);
}
}
function setExecutor(address _newExector) external {
require(msg.sender == _executor,"Huh bro, Get out of here!");
_executor = _newExector;
}
}Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "istanbul",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.