I have a script that sends transactions automatically using JSON RPC API call eth_sendRawTransaction
to a node that has RPC enabled.
My question is, what is going to happen if I send these transactions (there may be lots of them, btw) multiple times after they have been already processed?
Lets say, my script has a bug, or the database where I store the sent
status of the transaction is deleted, and somehow I resubmit lots of (already processed and stored on the blockchain) raw transactions again? I am basically interested in knowing if I am going to lose money for the second time I submit these transactions? Can miners process it and take the fee, while reporting error?
The logic suggests it shouldn't cost me to submit transactions multiple times because the nonce
and transaction hash
are unique values, but I want to be sure about it. Also, if resubmitting already processed transactions doesn't cost money, could this be a potential DDoS attack for Ethereum's Main Net? Like, resubmit all the transactions the blockchain already has processed?