From time to time, I will be making some 5 ~ 10 tx/s on Ethereum via RPC interface.
I have to handle the nonce manually because it cannot update fast enough. But I am facing issue below:
From time to time to RPC will fail, and I will have to reset the nonce.
Some times the RPC will fail and timeout, but the tx was processed successfully eventually. I can't reset the nonce in this case. Because if I reset, it will not be accurate anymore
In short, I don't know what shall I do when there is an error with the RPC. I don't know what to do with the nonce and don't know how to send the next transaction.