sendmany

hermherm Member Posts: 5
For bitcoin and other cryptocurrencies 1.0 there is a sendmany method call where you can transfer coins to multiple different addresses. I didn't found this option in there Ethereum client. Is it possible to do this with ether and how to do it? Do I need to create a contract for this or I can use normal account?
Is there maybe any samples how to achieve this?
Any help would be appreciated.

Thanks,
H

Comments

  • chrisethchriseth Member Posts: 170 ✭✭✭
    With most recent solidity, you can also do
    for (...) { if (!addresses[i].send(...)) throw; }
    to make sure that the sends are made in an atomic way, i.e. if a single send fails, everything is reverted.
Sign In or Register to comment.