Verified contractPartialMIT
BatchTransfer
Address0xef78641af30cff4a41bfd2871f3a160dceffa428
- Balance
0 ETH
- Transactions
45
- 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,162,978
- Creation transaction
- 0xedb98d3250…b6e4d9aef4
- Main copy (most transactions)
- 0xf4588d52…e38af7db
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.