Quick Start
Request Types
All request types extendData.TaggedClass for structural equality (enabling deduplication):
No-Parameter Requests
Address-Based Requests
Transaction Requests
Block Requests
Contract Interaction
Event Logs
Generic Requests
For methods not covered by typed requests:Request Deduplication
Identical requests within the same batch return a shared result:Data.TaggedClass, providing structural equality based on field values.
Error Handling
Each request in a batch can fail independently:Configuration
Use FiberRef helpers for per-request timeout and retry:Layer Composition
RpcBatch requires TransportService:
Service Interface
Comparison: Manual vs Effect.request
Manual Batching (Imperative)
Effect.request Pattern (Declarative)
- Automatic batching when requests run concurrently
- Built-in deduplication (same request = shared result)
- Per-request error handling
- Type-safe request/response mapping
- Composable with other Effect patterns (retry, timeout, caching)

