I want to transfer ETH to all recipients from recipient contract like below.
What is the limit of 'total'? for average.
How much gas for one internal transaction? Is it 500?
If 500 is right, 16,000 internal transactions can be processed? (gas limit for a block is approx 8,000,000 and I divide it by 500)
function return() public {
uint256 total = recipient.getTotalNumber();
for(uint256 i = 0; i < total; i++) {
recipient.getAddress(i).transfer(recipient.getAmount(i));
}
}