-1

I submit two transactions at the same time, will be incorrect like that java.lang.RuntimeException: Error processing transaction request: known transaction: a025d1ff67ec0545aff341aba7d47f6d8fb8da6a5580422a42db8eb2a343083d

how to resolve it

0

This is probably because the nonce of the transactions are the same. Indeed, you send them at the same time. If they come from the same address and if you don't specify what nonce to use, it will take the nonce from the chain.

But in the chain, fro both transactions, the nonce will be the same because the previous transaction was not mined.

So the first transaction is ok (nonce is correct), not the second on won't work because there is already a tx with this nonce. (the one you sent just before)

  • How do I get the random value of each transaction and then how to set it – J.JACK Jan 11 '18 at 9:38
  • You mean the nonce? It's not a random value, it is the number of transaction of a specific address. With web3js, you can get it with web3js.readthedocs.io/en/1.0/… There must be an equivalent with web3j – Andromelus Jan 11 '18 at 9:46
0
  1. You have to wait for mining first transaction and then submit the second.
  2. You can send the first transaction from one account and second from another.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.