Batch Sending Transactions (nonce sequence) vs. Load Balancer


I was wondering whether we will run into any problems if we batch send multiple transactions via Infura all in one go using manual nonce management instead of sending them serially and waiting for each one to be mined first before sending the next one.

I have heard that Infura load balances its nodes and that there are known issues with batch sending transactions due to that. Apparently one such failure scenario is where e.g. TX-Nonce-1 and TX-Nonce-2 get load balanced to two different nodes and TX-Nonce-2 will be rejected because of an incorrect nonce. Is that a real issue or are there similar ones I should be aware of?

Or are we good to go and send


all at once to the network via Infura?

Hi @gitpusha - depending on the number of transactions in-flight on the Ethereum network, you may run into a situation where your nonces don’t get picked up. Our current recommendation is that you track your nonce in your code and manually increment it as you send out additional transactions instead of calling getTransactionCount multiple times.