Skip to the content
TAPEHOUSE

Indexer API

Stream

A WebSocket of the index's updates as they happen.

WS/v1/stream

Text 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

400Why the request was not served.
401An X-API-Key the operator did not issue.
404Why the request was not served.
426Not a WebSocket upgrade.
429Over the tier's rate.