> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ipworld.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Subscribe

> Subscribe to events via WebSocket

### Query Parameters

<ParamField query="query" type="string" required>
  Query to subscribe to (e.g. "tm.event='NewBlock'")
</ParamField>

### Response

<ResponseField name="response" type="object">
  <p>Subscription result</p>

  <Expandable title="Properties">
    <ResponseField name="query" type="string">
      <p>Query subscribed to</p>
    </ResponseField>

    <ResponseField name="data" type="object">
      <p>Event data</p>
    </ResponseField>

    <ResponseField name="events" type="object">
      <p>Event details</p>
    </ResponseField>
  </Expandable>
</ResponseField>
