Blockchain Infrastructure¶
A blockchain application rarely reads consensus data directly from a peer and stops there. Nodes expose RPC methods, providers operate fleets, indexers turn blocks and logs into queryable tables, webhooks deliver derived events, and caches keep repeated reads affordable. Every layer adds useful behavior and another place where data can become late, duplicated, incomplete, or inconsistent with the canonical chain.
This section treats infrastructure as a correctness system. Availability matters, but a fast response from a stale fork can be worse than an explicit error. The chapters follow data from a node through RPC, indexing, delivery, caching, and recovery after a reorganization.
Chapters¶
- Running a Node: verification, sync, storage, exposure, and operations
- RPC: request semantics, block references, errors, and unsafe assumptions
- RPC Providers: managed access, trust, limits, and failover
- Archive Nodes: historical state versus historical blocks and receipts
- Indexers: deterministic derivation, checkpoints, schemas, and backfills
- The Graph: subgraph manifests, mappings, Graph Node, and query serving
- Block Explorers: derived labels, verification, and public query interfaces
- Mempool Infrastructure: local policy, propagation, replacement, and pending uncertainty
- Blockchain Data Pipelines: ordered ingestion, durable logs, and replay
- Event Processing: idempotency, deduplication, and delivery guarantees
- Reorg Handling: detecting a changed canonical history and rolling data back
- Webhooks: signed delivery, retries, ordering, and consumer safety
- Caching: keys, finality classes, invalidation, and stale reads
- Reliability: lag, health signals, redundancy, recovery objectives, and drills
The central data contract¶
Every stored or delivered fact should retain its chain ID, block number, block hash, transaction hash where applicable, and log index where applicable. Block numbers alone identify a position, not a unique history. Hashes let downstream systems detect that the block once called canonical has been replaced.
Infrastructure should also state its consistency point. “Latest” may mean the provider's current head, an indexer checkpoint, a confirmed block, a finalized block, or cached data from seconds ago. Interfaces that hide this distinction force callers to guess.
Further reading¶
← Previous: Formal Verification · Back to Full Contents · Next: Running a Node →