API
eth_subscribe
Subscribe to realtime channels over WebSocket.
Request
eth_subscribe.jsonjson
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_subscribe",
"params": ["miniBlocks"]
}Supported Channels
| Channel | Payload | Use case |
|---|---|---|
| miniBlocks | Mini block + execution context | Realtime app state |
| newHeads | EVM block headers | Canonical block indexing |
| logs | Event logs | Event-driven integrations |
| pendingTransactions | Tx hashes | Mempool-aware UX |
Keep connection alive with periodic eth_chainId (every ~30s) on long-lived sockets.
Was this page helpful?
Edit on GitHub