0

I use Transfer.sendFunds(Web3j, Credentials, BigDecimal, Convert.Unit) to transfer money. Usually I convert it to flowable. Flowable/RemoteCall completes when transaction is included in block (correct me if I am wrong). So my question actually can be split to two:

  • does web3j handle cases when I started transaction and then went offline?
  • and if so how can I get transaction hash?
1

Transaction hash is created before the transaction is broadcasted. Transaction hash, as the name says, is just all hashed data for a signed transaction.

Because Ethereum transactions have nonce parameter you can safely re-broadcast any signed transaction as many times as you want. Miners will mine transactions only in the order of one step nonce increases, nonce = 1, nonce = 2, etc.

| improve this answer | |

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.