---
title: "Query event stream"
method: GET
path: "/cryptos/{cryptoCode}/events"
tags: ["Events"]
---

# Query event stream

`GET /cryptos/{cryptoCode}/events`

Retrieves a stream of events for the specified cryptocurrency. This endpoint supports long polling and Server-Sent Events (SSE).

## Path parameters

- `cryptoCode` string, required

## Query parameters

- `lastEventId` integer
- `longPolling` boolean
- `limit` integer

## Response `200`

Event stream retrieved successfully.

- Event[]
  - `eventId` integer — Unique identifier for the event.
  - `type` string — Type of event (e.g., 'newblock', 'newtransaction').
  - `data` object — Additional data related to the event.

## Changes

- **2024-11-25** `6b9539137e6a` — 3 info
  - api tag `Events` added
  - removed the `newblock` enum value from the `items/type` response property for the response status `200`
  - removed the `newtransaction` enum value from the `items/type` response property for the response status `200`
- **2024-11-18** `b5092f204599` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/btcpayserver/apis/nbxplorer-api/changes/cryptos/:cryptoCode/events/get.md)

---

[API](https://skmtc.dev/btcpayserver/apis/nbxplorer-api.md) · [All operations](https://skmtc.dev/btcpayserver/apis/nbxplorer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/btcpayserver/nbxplorer-api/revisions/7a96af40bbcc/schema)
