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

# suix_subscribeEvent

> Subscribe to a stream of Sui event

### Parameters

<ParamField query="chainId" type="string" default="sui" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="suix_subscribeEvent" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={[{"eventType":"Transfer","sender":"0xa6f5a7953a75dc632e696cabe60560522a017bf2fb0bd930d1ec22c06f1ee4e4"}]} placeholder="[{&#x22;eventType&#x22;:&#x22;Transfer&#x22;,&#x22;sender&#x22;:&#x22;0xa6f5a7953a75dc632e696cabe60560522a017bf2fb0bd930d1ec22c06f1ee4e4&#x22;}]" required>
  Parameters for suix\_subscribeEvent: \[filter].

  Positional parameters for <code>suix\_subscribeEvent</code>:

  <ul>
    <li><code>params\[]</code>: Event filter criteria for subscribing to a stream of Sui events. See Event filter documentation for examples.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  A SuiEvent object representing a single event received by the subscription.

  <Expandable title="properties">
    <ResponseField name="id" type="string">
      Sequential event ID (e.g., a combination of transaction and event sequence numbers) which serves as the cursor for event querying.
    </ResponseField>

    <ResponseField name="packageId" type="string">
      The Move package ID where this event was emitted.
    </ResponseField>

    <ResponseField name="parsedJson" type="object">
      Parsed JSON value of the event.
    </ResponseField>

    <ResponseField name="sender" type="string">
      Sender's Sui address.
    </ResponseField>

    <ResponseField name="timestampMs" type="oneOf">
      UTC timestamp in milliseconds since the Unix epoch (nullable).

      <Expandable title="variants">
        <ResponseField name="variant1" type="string">
          BigInt for uint64 represented as a string
        </ResponseField>

        <ResponseField name="variant2" type="string" />
      </Expandable>
    </ResponseField>

    <ResponseField name="transactionModule" type="string">
      The Move module in which this event was emitted.
    </ResponseField>

    <ResponseField name="type" type="string">
      The Move event type.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "suix_subscribeEvent",
      "params": [
        {
          "eventType": "Transfer",
          "sender": "0xa6f5a7953a75dc632e696cabe60560522a017bf2fb0bd930d1ec22c06f1ee4e4"
        }
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {}
  }
  ```
</ResponseExample>
