Expose retry count for waitForTransactionReceipt action #1752
-
I would like viem to consider having The issue is on slow blockchains and with slow rpcs recently sent transaction end up being not found in blocks with the "Transaction with {hash} could not be found" error thrown. The issue has been happening since the very beginning of our viem migration. And is hard to reproduce. With the retry count exposed we would be able to overwrite it for some chains, such as fantom, by increasing it, to catch some more blocks after transaction submitted. Workaround I've come up in the meantime is as follows:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
PR welcome! |
Beta Was this translation helpful? Give feedback.
-
It is also related to #1540. I would love to see |
Beta Was this translation helpful? Give feedback.
-
Should be in 2.7.1 once build passes. https://viem.sh/docs/actions/public/waitForTransactionReceipt#retrycount-optional |
Beta Was this translation helpful? Give feedback.
-
That was fast! top |
Beta Was this translation helpful? Give feedback.
Should be in 2.7.1 once build passes.
https://viem.sh/docs/actions/public/waitForTransactionReceipt#retrycount-optional