Author

Topic: encapsule mulitple transferring in one transaction (Read 114 times)

legendary
Activity: 1584
Merit: 1280
Heisenberg Design Services
Though there aren't a separate place for discussing technical topics on Altcoins,  you can use the ANN Thread to clear your doubts.

Ether is not a currency which can be used for payments like btc. It will be mostly used only for covering gas fees as mentioned by VB. Hence, tokens based on ether can use this function while ether can't. It isn't a complete NO, but you can send eth to multiple addresses using the ecrecover option. I am not really familiar about using this, but sending tokens to multiple address is as easy as creating a contract. You just need to know some basic solidity coding and need to know how to use the multisend function. Here after creating a smart contract for sending of tokens, the list of addresses you mentioned will act as an array and tokens are sent.

Multisend() is commonly used by ICO teams while distributing airdrop tokens to the fellow participants. A basic solidity code for sending tokens to multiple addresses look like

Code:
contract Multisend { function multiTransfer(ERC20 token, address[] _addresses, uint256 amount)
   public { for (uint256 i = 0; i < _addresses.length; i++)
        {
           token.transfer(_addresses[i], amount);
} } }

Though this may not be a direct answer for your question, it might help you in understanding how eth works.
legendary
Activity: 1042
Merit: 2805
Bitcoin and C♯ Enthusiast
I don't think this is the appropriate board for this question, but then there is no Altcoin Technical Discussion board!

This is an interesting question that I was also wondering about recently so I did some research. Disappointingly the findings were somewhat contradictory. Some say it is possible and some say it isn't. The discussions about it being impossible are more reasonable.
For instance ETH is not a currency so you shouldn't expect currency functions from it such as "payment". Ether which is the token you are sending is meant to be used as a fuel for smart contracts so technically you should have only 1 recipient.
But I have seen people saying it is possible and saw one script for it (which I can't find now). But the problem was that the script was basically a loop making multiple transactions like a chain making multiple payments instead of paying all in one tx, at least that is what I figured.

If someone has any more information I would love to hear it...
newbie
Activity: 16
Merit: 0
I am not sure whether I can ask eth question here. I read materials about bitcoin before and knwo that bitcoin can put multiple transferring in one transaction. is there a counterpart of such function in eth?
Jump to: