> 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/welcome-to-pancakeswap/contact-us/faq/what-is-an-approval-transaction.md).

# What is an Approval Transaction?

**The first time you swap or add liquidity, you have to approve the token you are swapping. This gives the PancakeSwap smart contract permission to swap that token from your wallet.**

The approval transaction allows PancakeSwap permission to swap the token from your wallet. You have to complete an approval transaction for every token you want to swap using PancakeSwap.

Here is a guide on how to complete an approval transaction:

1. Enter your swap details.

   <figure><img src="/files/0MqbyIf4XjPPewgLHSsF" alt=""><figcaption></figcaption></figure>
2. Select “Confirm swap” after reviewing swap details.

   <figure><img src="/files/d8KsNNq81v0OGaOduMU8" alt=""><figcaption></figcaption></figure>
3. In your wallet app or wallet extension, approve the spending for the token you are swapping.

Allow the token to be used for swapping in your wallet.

*Your wallet may require you to enter the number of tokens you want to approve. Please enter a number that is greater than or equal to the number of tokens you are swapping.*

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

4. After the approval, another transaction will appear which asks you to confirm the swap.

   <figure><img src="/files/TZRRQf3h8fkK9r1MSmQo" alt=""><figcaption></figcaption></figure>
5. Once the swap is confirmed, the transaction is submitted to the blockchain (pending).

   <figure><img src="/files/GEUUpfnYYXr8xChKNHlR" alt=""><figcaption></figcaption></figure>
6. You will see “Success” and a green checkmark on the screen when the transaction is successfully completed.

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

The token approval lasts for a certain period of time, the token will have to be approved again later with a signature request. An approval signature does not require a network fee.


---

# 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/welcome-to-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.
