> For the complete documentation index, see [llms.txt](https://docs.pancakeswap.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pancakeswap.finance/vietnamese/chao-mung-den-voi-pancakeswap/contact-us/faq/what-is-an-approval-transaction.md).

# Giao dịch phê duyệt là gì?

**Lần đầu tiên bạn hoán đổi hoặc thêm thanh khoản, bạn phải phê duyệt token bạn đang hoán đổi. Điều này cấp cho hợp đồng thông minh PancakeSwap quyền hoán đổi token đó từ ví của bạn.**

Giao dịch phê duyệt cho phép PancakeSwap quyền hoán đổi token từ ví của bạn. Bạn phải hoàn thành giao dịch phê duyệt cho mỗi token bạn muốn hoán đổi bằng PancakeSwap.

Đây là hướng dẫn cách hoàn thành giao dịch phê duyệt:

1. Nhập chi tiết hoán đổi của bạn.

   <figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/step1%20%281%29%20%281%29.png" alt=""><figcaption></figcaption></figure>
2. Chọn "Confirm swap" sau khi xem lại chi tiết hoán đổi.

   <figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/4536.png" alt=""><figcaption></figcaption></figure>
3. Trong ứng dụng ví hoặc extension ví của bạn, phê duyệt chi tiêu cho token bạn đang hoán đổi.

Cho phép token được sử dụng để hoán đổi trong ví của bạn.

*Ví của bạn có thể yêu cầu bạn nhập số lượng token bạn muốn phê duyệt. Vui lòng nhập số lớn hơn hoặc bằng số lượng token bạn đang hoán đổi.*

<figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/1%20%281%29.png" alt=""><figcaption></figcaption></figure>

4. Sau khi phê duyệt, một giao dịch khác sẽ xuất hiện yêu cầu bạn xác nhận hoán đổi.

   <figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/3.png" alt=""><figcaption></figcaption></figure>
5. Khi hoán đổi được xác nhận, giao dịch được gửi lên blockchain (đang chờ xử lý).

   <figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/step%2004.png" alt=""><figcaption></figcaption></figure>
6. Bạn sẽ thấy "Success" và dấu kiểm màu xanh lá trên màn hình khi giao dịch được hoàn thành thành công.

<figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/5.png" alt=""><figcaption></figcaption></figure>

Phê duyệt token kéo dài trong một khoảng thời gian nhất định, token sẽ phải được phê duyệt lại sau đó với yêu cầu chữ ký. Chữ ký phê duyệt không yêu cầu phí mạng.


---

# 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://docs.pancakeswap.finance/vietnamese/chao-mung-den-voi-pancakeswap/contact-us/faq/what-is-an-approval-transaction.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.
