Paginate historical Ethereum events with web3.js
Split large eth_getLogs queries into bounded block chunks to avoid RPC timeouts and rate limits when fetching historical ERC-20 Transfer events.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Split large eth_getLogs queries into bounded block chunks to avoid RPC timeouts and rate limits when fetching historical ERC-20 Transfer events.
When Hardhat fork tests fail with 'block not found', gas reverts, or stale state, this guide walks a repeatable diagnostic flow—from RPC archive checks to gas-limit alignment and block pinning.
Build a minimal, type‑safe tRPC layer with Zod validation and middleware‑based auth for same‑origin apps. This guide covers requirements, design, trust boundaries, ops checks, failure modes, and when to pivot to a different API stack.
Learn how Neovim's Lua API isolates plugin code from the core editor, what trust boundaries exist, and how to verify safe operation.
I'm building a Reach DApp with two participants (a deployer and an attacher) targeting Algorand, compiled with a recent Reach release. The generated frontend stubs in build/index.main.mjs handle all communication with the consensus network through the connector, and I have no user-facing configuration for transport behavior. My uncertainty: when a participan
Neovim services RPC requests from external clients on its single-threaded libuv event loop, so concurrent requests are effectively serialized. Documented behavior is that long-running Lua work in a callback — a timer-driven buffer scan, for instance — delays everything else pending on the main loop, including queued RPC responses. The goal here is a configur
Cairo RPC ↔ Event Indexer Pagination The Cairo blockchain exposes an RPC endpoint for querying events that accepts a block range to bound the query and pagination parameters (cursor and limit) for incremental retrieval. Documentation indicates that the cursor is a base64‑encoded string representing the last retrieved event’s position, but it does not state w
Goal Determine whether Hardhat should provide a safety mechanism that alerts users when the RPC server is bound to all network interfaces (0.0.0.0) to prevent accidental public exposure of the node. Constraints and uncertainty Hardhat’s default binding is 127.0.0.1:8545, but specifying the --hostname 0.0.0.0 flag changes the listener to all interfaces withou
Goal: Graceful cancellation and timeout handling The Polygon RPC layer signals request throttling with an HTTP 429 status and the message "Too Many Requests" once the per‑minute quota is exceeded. When a client library times out or receives a 429, the current pattern is to abort the request and surface a generic error to the caller. There is no standard mech