---
title: "WebSocket connection for one chain"
method: GET
path: "/v1/cryptos/{cryptoCode}/connect"
tags: ["Events"]
---

# WebSocket connection for one chain

`GET /v1/cryptos/{cryptoCode}/connect`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/v1/cryptos/{cryptoCode}/connect`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/btcpayserver/apis/nbxplorer-api/docs/v1/cryptos/:cryptoCode/connect/get.ts> (a function with typed inputs; its response is checked against the schema)

Establishes a WebSocket connection to receive real-time events for the specified cryptocurrency. (Check [Query Event Stream for the data format](#tag/Events/operation/EventStream))

## Path parameters

- `cryptoCode` string, required

## Other responses

- `101`: Switching protocols to WebSocket.

## Changes

- **2026-09-29** `52231f42c765`: 1 info
  - endpoint added
- **2025-01-06** `5ff4bcf62192`: 1 breaking
  - api path removed without deprecation
- **2024-11-28** `32910c4ec4c8`: 1 info
  - api operation id `WebSocket` was added
- **2024-11-25** `de4c3fa16384`: 2 info
  - api tag `Events` added
  - api tag `WebSocket` removed
- **2024-11-25** `72a2dfa26976`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/btcpayserver/apis/nbxplorer-api/changes/v1/cryptos/:cryptoCode/connect/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.dev/btcpayserver/apis/nbxplorer-api/revisions/52231f42c765?raw)
