Is there a way to batch transactions (send ETH to multiple addresses in a single transaction)?

Hi,

is there a way in Moralis to batch transactions? E.g. say I need to refund 1000 users…

A way could be to send to each one the amount. … but like this (especially on Ethereum) the gas spent will be huge!

I’m looking for a smarter way, make a transaction where I specify all the addresses and the amount for each one of them (in my case it’s always the same amount). I know that the gas for such a transaction will be higher, but sure cheaper than making a separate transaction for each destination address.

Feasible? Thank you.

You need to make a smart contract that does that batch sending and after that you can call a function on that smart contract. You may also find services that are specialised in this type of batch transactions.

1 Like