I want to know what is the gas effective manner to code to transfer many (e.g 1000) ERC721 tokens to a single address. I have tried the way below but I want something more efficient.
function bulkTransfer(uint256[] tokenIds, address _to) public onlyOwner {
uint256 length = tokenIds.length;
for (uint256 i = 0; i < length; i++) {
_transfer(owner, _to, tokenIds[i]);
}
}
Assume that the owner holds all these tokens in that array.