Indexer API
Stream
A WebSocket of the index's updates as they happen.
WS
/v1/streamText messages, each a JSON object: {"type":"event","event":Event,"finalized":n} for each event selected, {"type":"head","head":Head,"finalized":n} after each indexing step, and {"type":"rewind","block":n,...} when a reorganisation removed every event above block n. A client that falls 256 messages behind is disconnected with code 1008 and resumes from /v1/events.
Query parameters
contractstring
eventstring
Response
101 Switching to the WebSocket protocol.
Errors
| 400 | Why the request was not served. |
| 401 | An X-API-Key the operator did not issue. |
| 404 | Why the request was not served. |
| 426 | Not a WebSocket upgrade. |
| 429 | Over the tier's rate. |