@tevm/voltaire/utils exports async control-flow primitives for RPC transport reliability: exponential backoff retries, token-bucket rate limiting, polling, deadlines, and request batching.
Source: packages/voltaire-ts/src/utils/index.ts.
Exports
Composing Utilities
Combine utilities around an EIP-1193provider.request call to build a resilient RPC pipeline:
Documentation
Retry
retryWithBackoff and withRetry with exponential backoff and jitter.Rate Limiting
Token-bucket
RateLimiter, throttle, and debounce.Polling
poll, pollUntil, pollForReceipt, and pollWithBackoff.Timeout
withTimeout, executeWithTimeout, sleep, createDeferred, and TimeoutError.Batching
BatchQueue, createBatchedFunction, and concurrency-limited AsyncQueue.
