hi
I am now working on a trading platform
. There are a large number of tokens on the
platform, which may be raised by a person several times, and the number is the same. Then the administrator checks all the coins on this page, and then confirms that the transfer currency
is sent through web3j at this time, but the first success of
is successful, and the latter is not successful many times, suggesting how to solve the problem of transaction replacement underprice,?
Yes
but can I send transaction settings nonce every time
but I see that the underlying process of getting nonce in web3j is to get the number of pending transactions according to the address and then + 1
there is another way to block by polling transaction receipts after transfer
but sometimes polling fails
timeout, after all, polling 40 times
now I want to find an efficient way to ensure that transactions are sent correctly
after all, there may be coins every moment in the follow-up, please ask the Great God how to solve this problem, thank you!