Content
@
0 reply
0 recast
2 reactions
billzh
@billzh
In writing Solidity smart contracts, what's the best way to batch transfer ETH to a large group of recipients?
5 replies
0 recast
72 reactions
phil
@phil
Have them withdraw it :)
3 replies
0 recast
10 reactions
billzh
@billzh
yea was trying to see if I could skip the withdraw step and just directly send ETH, but seems like it might be risky
2 replies
0 recast
0 reaction
maurelian
@maurelian.eth
Creating and self destructing a new contract in the constructor prevents DoS
0 reply
0 recast
0 reaction
Trigs
@trigs
It's a trade-off. I don't know the code side, but one of the questions is who pays gas. Batch sending is much more expensive cuz you pay all the gas. Also, withdrawing prevents sending to dead wallets. If you have a claim window you can claw back what would have been wasted. Also, taxpayers prefer withdrawing.
1 reply
0 recast
1 reaction