chaincodec-stream
Real-time blockchain event streaming engine for ChainCodec — Tokio-based WebSocket listener.
Features
- Subscribe to live EVM events via
eth_subscribe(WebSocket) - Automatic reconnect with exponential backoff
- Decoded events streamed through async
tokio::sync::mpscchannels - Supports multiple concurrent subscriptions across chains
Usage
[]
= "0.1"
use EventListener;
let listener = builder
.ws_url
.registry
.decoder
.build
.await?;
let mut rx = listener.subscribe.await?;
while let Some = rx.recv.await
License
MIT — see LICENSE