> For the complete documentation index, see [llms.txt](https://support.backpack.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.backpack.exchange/support-docs/vn/vi-wallet/tai-lieu-ky-thuat/deeplinks/cac-phuong-thuc-provider/ngat-ket-noi.md).

# Ngắt kết nối

Sau sự kiện [Connect](broken://pages/XwbwIltEf3ZAVdFk4Zan) ban đầu, một ứng dụng có thể ngắt kết nối khỏi Backpack bất kỳ lúc nào. Khi Backpack bị ngắt kết nối, nó sẽ từ chối tất cả các yêu cầu chữ ký cho đến khi một kết nối mới được thiết lập.

## URL cơ sở

```
https://backpack.app/ul/v1/disconnect
```

## Tham số Chuỗi Truy vấn

* `dapp_encryption_public_key` **(bắt buộc)**: Khóa công khai mã hóa ban đầu của ứng dụng cho phiên Kết nối hiện có.
* `nonce` **(bắt buộc)**: Một nonce được mã hóa base58 được sử dụng để mã hóa yêu cầu.
* `redirect_link` **(bắt buộc)**: Backpack sẽ chuyển hướng người dùng đến URI này sau khi hoàn tất. Để biết thêm thông tin, vui lòng xem  [Specifying Redirects](broken://pages/eEN4Je3hS9GkJD2llYkD). Được mã hóa URL.
* `payload` **(bắt buộc)**: Một chuỗi JSON đã được mã hóa với các trường sau:

  Copy

  ```
  {
      "session": "...", // token received from the connect method
  }
  ```

  * `session` **(bắt buộc)**: Mã phiên nhận được từ phương thức Kết nối. Vui lòng xem  [Handling Sessions](broken://pages/XkwAjjvmdBNyhgvfc29p) để biết thêm chi tiết.

## Kết Quả Trả Về

### Chấp nhận

Không có tham số truy vấn nào được trả về.

### Từ chối

Một `errorCode` và `errorMessage` dưới dạng các tham số truy vấn.

Vui lòng xem [Errors](broken://pages/T3LxDBNiZXh6Q2nP7dhl#errors) để biết danh sách đầy đủ các mã lỗi có thể xảy ra

```
{
  "errorCode": "...",
  "errorMessage": "..."
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://support.backpack.exchange/support-docs/vn/vi-wallet/tai-lieu-ky-thuat/deeplinks/cac-phuong-thuc-provider/ngat-ket-noi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
