1

Is there a way to figure get more information about a certain transaction from its txn hash? I am noticing lots of stuck transactions. Here is the workflow:

  • txid = web3.eth.send_transaction

  • web3.get_transaction(txid) raises TransactionNotFound error.

When i search for that txid on polygonscan, I don't get anything.

What are the options available to me to debug this? Is the time between send and get like a blackhole?

1 Answer 1

1

Usually this means that the node, of which JSON-RPC API you are using, is not broadcasting the transaction to the network.

Reasons may include

  • Very incorrect gas fee

  • Wrong nonce

  • Wrong signature

To debug such problems, run your local JSON-RPC API node, with log level debug. Then submit your transaction against this node and you will see any errors with your transaction in the log files of your node.

3
  • Is there a way to run the JSON-RPC API only without having to download the whole blockchain? Jul 30, 2021 at 20:08
  • No. Where would the API get the data in that case, then? Jul 31, 2021 at 8:11
  • Ok. I was thinking that for debugging it could forward all the calls to another node. Aug 1, 2021 at 20:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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