-
-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: TransactionReceiptNotFoundError: Transaction receipt with hash #1056
Comments
This is typically due to using a Public RPC Provider or RPC Provider that has aggressive load balancing & caching. Can you try the same with Alchemy, Infura, QuickNode or Ankr? |
What is the suggested solution for dapps where you need to access rpcs in the frontend? This issue seems less common with Ethersjs, any idea why? |
RPC API keys are designed to be used in the browser. You should be using the RPC Provider’s API key whitelisting to properly secure your key against abuse. |
For me, this is happening even on a reliable private RPC (QuickNode). Here's the network requests sequence I'm seeing:
This sequence looks somewhat odd, but since this seems to happen on any RPC, I believe this should still be handled gracefully. The alternative is to just put a loop with a |
Can confirm this is not working as intended. Issue should be re-opened. Expect the library to actually wait for transactions even if RPC implements aggressive load balancing (using Alchemy tho). |
Please open a new issue with a minimal reproducible example. |
I have the same issue. Sometimes zkSync |
Experiencing the same. |
|
experiencing the same issue. any update on the timeline for a fix? |
Locking issue as replying without a minimal reproducible example isn’t helpful for anyone. Please open a new issue with a minimal reproducible example. |
Is there an existing issue for this?
Package Version
1.2.9
Current Behavior
TransactionReceiptNotFoundError: Transaction receipt with hash "0x6d90d7e90e50773d6462a287a7c17a8a73559aae2183ee97f42aad2a345d834b" could not be found. The Transaction may not be processed on a block yet. Version: viem@1.2.10 at getTransactionReceipt (getTransactionReceipt.js:33:1) at async Object.onBlockNumber (waitForTransactionReceipt.js:122:1)
waitForTransactionReceipt is supposed to wait for txn instead of throwin err right?
Expected Behavior
Wait and return txn data
Steps To Reproduce
This my piece of code
const tx = await client.waitForTransactionReceipt({ hash });
Link to Minimal Reproducible Example (StackBlitz, CodeSandbox, GitHub repo etc.)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: