---
title: "SubscribeEvents"
method: POST
path: "/rpc/Indexer/SubscribeEvents"
tags: ["public"]
---

# SubscribeEvents

`POST /rpc/Indexer/SubscribeEvents`

On Sepolia Mainnet, subscribe and receive receipts based on a filter of transaction mints

## Request body

- IndexerSubscribeEventsRequest
  - `filter` EventFilter
    - `events` string[] — []string
    - `contractAddresses` string[] — []string
    - `accounts` string[] — []string
    - `tokenIDs` string[] — []string

## Response `200`

OK

- IndexerSubscribeEventsResponse
  - `log` EventLog
    - `id` number, required
    - `uid` string, required
    - `type` 'UNKNOWN' | 'BLOCK_ADDED' | 'BLOCK_REMOVED', required — Represented as uint8 on the server side
    - `blockNumber` number, required
    - `blockHash` string, required
    - `parentBlockHash` string, required
    - `contractAddress` string, required
    - `contractType` 'UNKNOWN' | 'ERC20' | 'ERC721' | 'ERC1155', required — Represented as uint16 on the server side
    - `txnHash` string, required
    - `txnIndex` number, required
    - `txnLogIndex` number, required
    - `logDataType` 'EVENT' | 'TOKEN_TRANSFER' | 'NATIVE_TOKEN_TRANSFER' | 'SEQUENCE_TXN', required — Represented as uint8 on the server side
    - `ts` string, required
    - `txnInfo` TxnInfo
      - `from` string, required
      - `to` string, required
      - `value` string, required
    - `rawLog` object — map<string,any>
    - `event` EventDecoded
      - `topicHash` string, required
      - `eventSig` string, required
      - `types` string[], required — []string
      - `names` string[], required — []string
      - `values` string[], required — []string

## Other responses

- `4XX` — Client error
- `5XX` — Server error

---

[API](https://skmtc.dev/sequence/apis/analytics-api.md) · [All operations](https://skmtc.dev/sequence/apis/analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sequence/analytics-api/revisions/12db1459a050/schema)
