What should I choose between these two options:
utility.batch()
I can batch multiple calls into one call, so it avoids making too many calls, but I'm afraid this will exceed the size of the block if I put all of my 20 000 transactions, and I would end up with something unwanted. Or does batch()
can dispatch the calls on multiple blocks ?
- the call
Or I could just signAndSend
each transaction. It makes a lot of transaction, but I think it would be the best way as I'm (almost) sure everything will be sent across multiple blocks, but it will also be very long, and I'll need to make sure I don't have network/PC problem while the script is running