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:
/web3-eth/lib/commonjs/web3_eth.js:743
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 Generator.next (<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!