0

I have an address A which I have funded with ETH. Now I want to crate a transaction to send the funds to a different address B. Creating and signing seems to work as I can decode the transaction and all values seem to be good. Broadcasting the transaction on etherscan.io leads to the following error:

Unable To Broadcast Txn : {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"future transaction tries to replace pending"}}

Broadcasting the transaction on blockcypher.com lead to the following error:

Error validating transaction: Transaction [txhash] orphaned, missing reference 0000000000000000000000000000000000000000000000000000000000000000.

can someone tell me what might be the problem?

2
  • 1
    Add more details about the transaction . Also have you broadcasted any previous transaction with the same nonce Commented Jul 25, 2024 at 4:00
  • I think you need to increase priority gas in order to replace a pending tx Commented Jul 27, 2024 at 9:06

1 Answer 1

1

Which chain are you trying to do this? Try including nonce in the transaction. You can fetch your account's latest nonce in web3.js from this function web3.eth.getTransactionCount(accountAddress)

2
  • thanks - at the end it was the nounce. didn´t knew that you MUST start with 0 (tried 1 and increased automatically) the nounce has to be increased with every transaction done by the referencing address? so even if all tx are broadcasted and confirmed I have to increase it for further transactions? Commented Jul 28, 2024 at 12:28
  • I am glad you resolved your issue. Can you please mark my comment as answer. Commented Aug 1, 2024 at 12:51

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.