# 什么是批准交易？

**在您进行首次交换或添加流动性时，您必须批准要交换的代币。这样可以让 PaySwap 智能合约有权限从您的钱包交换该代币。**

批准交易允许 PaySwap 从您的钱包交换代币。您必须为每个您想要使用 PaySwap 进行交换的代币完成一次批准交易。

以下是如何完成批准交易的指南：

1. 输入您的交换详细信息。

   <figure><img src="/files/6zKcufI7loF2Rt8lqKgc" alt=""><figcaption></figcaption></figure>
2. 在审查交换详细信息后，选择“确认交换”。

   <figure><img src="/files/BVHxrKRo9sUKUhUWQhRQ" alt=""><figcaption></figcaption></figure>
3. 在您的钱包应用程序或钱包扩展中，批准您要交换的代币的支出。

允许该代币在您的钱包中用于交换。

*您的钱包可能需要您输入要批准的代币数量。请输入大于或等于您要交换的代币数量的数字。*

<figure><img src="/files/acVkOWHemzeEYlYqzykQ" alt=""><figcaption></figcaption></figure>

4. 批准完成后，将出现另一个要求您确认交换的交易。

   <figure><img src="/files/QwK7YRb2DF5dHDksb43G" alt=""><figcaption></figcaption></figure>
5. 一旦确认交换，交易将提交到区块链（挂起）。

   <figure><img src="/files/GLRnXbGvWRxW96BxbH2Z" alt=""><figcaption></figcaption></figure>
6. 当交易成功完成时，屏幕上会显示“成功”和绿色复选标志。

<figure><img src="/files/Gw2Ab0KjB7eBAPXLvGOs" alt=""><figcaption></figcaption></figure>

代币批准持续一段时间，稍后将需要使用签名请求再次批准该代币。批准签名不需要网络费用。


---

# Agent Instructions: 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:

```
GET https://docs.payswap.org/zhong-guo-ren/readme/help/what-is-an-approval-transaction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
