Chain level configuration of polling interval #3701
-
Viem currently has a default polling interval on the client of 4 seconds (typically used in things like I would like to propose a new field on chain definitions of Many developers are either building on many chains or on a specific L2, and may not think to adjust polling intervals, leading to the appearance of suboptimal performance or a "slow chain" when in fact the client is just waiting much longer than necessary to check for a transaction receipt. Default for polling interval should be something along the lines of |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Big agree here. Having the flexibility here would be a win for all. |
Beta Was this translation helpful? Give feedback.
-
I am happy to accept a PR to add this. |
Beta Was this translation helpful? Give feedback.
-
Co-signing this. Having blockTime at the chain level would reduce the need for per-app overrides and help ensure consistent UX across projects. It also makes Viem more future proof as faster chains emerge. Better defaults, less config. |
Beta Was this translation helpful? Give feedback.
Nevermind, I started: #3702.