ERROR: TransactionNotFound using web3.eth.getTransactionReceipt(txHash)

Hello! I have been using

let txReceipt = await web3.eth.getTransactionReceipt(txHash);

But all of a sudden i have been getting this error, here is an example, since i wrapped it in a try-catch:

ERROR: Could not get Transaction for 0x07f60b327a5c64b09e08502db3ef276cfa9f8bc9355534689559c94ff3c233da: TransactionNotFound: Transaction not found

If you check etherscan, the transaction Ethereum Transaction Hash (Txhash) Details | Etherscan does, in fact, exist. further error without the try-catch was:

                throw new web3_errors_1.TransactionNotFound();
TransactionNotFound: Transaction not found
    at Web3Eth.<anonymous> (/app/node_modules/web3-eth/lib/commonjs/web3_eth.js:743:23)
    at (<anonymous>)
    at fulfilled (/app/node_modules/web3-eth/lib/commonjs/web3_eth.js:44:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  innerError: undefined,
  receipt: undefined,
  code: 430

Any suggestions for fixing this error is much appriciated!

1 Like

hey, this was probably related to this incident which should be resolved Infura Status - Degraded performance for Mainnet HTTPS JSON-RPC API
Are you still seeing the issue ?


Im havent had an issue since 8th December. I believe this was the cause. I wish there was a way to be more aware of incidents like this.


This topic was automatically closed after 30 days. New replies are no longer allowed.