# On-chain Tasks

TaskOn currently supports various `on-chain templates`, including `Swap`, `Add Liquidity`, `Lending`, `NFT Holder`, `Token Balance`, `Gas Fee Spent Amount`, `Number of Transactions`, and more. You can set up on-chain tasks based on your own requirements.

## Swap

1. Choose DEX; TaskOn Community now support `Uniswap`, `Pancake Swap`, `Curve`.
2. Choose Swap, enter the network, and tokens.

<figure><img src="/files/rbxVZXhxyxol9r7z2RNL" alt="" width="563"><figcaption></figcaption></figure>

3. Set value requirement

There are three types: `At least`, `Less than`, `In the range`. Enter the number. You also can set the times of swap.

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

4. Finish Extra Settings

*For extra settings, please refer to the* [*tutorial*](/guide-book/boost-engagement/task-system/how-to-create-tasks/step3-extra-settings.md).

## Add Liquidity

1. Choose DEX; TaskOn Community now support `Uniswap`, `Pancake Swap`, `Curve`.
2. Choose `Add Liquidity`, add description of the task, and select the network.

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

3. Select `Quote` token and `Base` token.

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

4. Set value requirement: `At least`, `Less than`, `In the range`. You can also set the times of transaction.
5. Click "`Test this task`" to verify the task process.

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

6. Extra Settings

*For extra settings, please refer to the* [*tutorial*](/guide-book/boost-engagement/task-system/how-to-create-tasks/step3-extra-settings.md).

### NFT Holder

1. Click "`Wallet Balance`”,  and select "`Specific NFT Holder`".
2. Select Network.

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

3. Choose NFT.

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

If it does not show any NFT collection, please click "`Add New NFT`", and enter the `NFT contract address`.

<figure><img src="/files/6YI7eDLGGI2oiOTySlcc" alt=""><figcaption></figcaption></figure>

4. Set value requirement: `At least`, `Less than`, `In the range`. You can also set the times of transaction (optional).
5. Click "`Test this task`" to verify the task process.

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

6. Extra Settings

*For extra settings, please refer to the* [*tutorial*](/guide-book/boost-engagement/task-system/how-to-create-tasks/step3-extra-settings.md).

### Token Balance

1. Click "`Wallet Balance`",  and click "`Minimum Token Balance`".
2. Select network, and choose the token.

<figure><img src="/files/ojvW0C0CG5SVbmLU3DpT" alt="" width="563"><figcaption></figcaption></figure>

3. Set value requirement: `At least`, `Less than`, `In the range`. You can also set the times of transaction (optional).

<figure><img src="/files/JssN4Okpu9ybQREie28E" alt="" width="563"><figcaption></figcaption></figure>

4. Finish Extra Settings

*For extra settings, please refer to the* [*tutorial*](/guide-book/boost-engagement/task-system/how-to-create-tasks/step3-extra-settings.md).

### Gas Fee Spent Amount

1. Choose `Gas Related`, and click "`Gas Fee Spent Amount`".
2. Select network.
3. Set value requirement: `At least`, `Less than`, `In the range`.

<figure><img src="/files/3R5eqJQUEAOFKIxCg5yR" alt=""><figcaption></figcaption></figure>

4. Finish Extra Settings

*For extra settings, please refer to the* [*tutorial*](/guide-book/boost-engagement/task-system/how-to-create-tasks/step3-extra-settings.md).

### Number of Transaction on Specified Chain

1. Choose `Gas Related`, and click "`Number of Transactions on Specified Chain`".
2. Select network, and enter the required times of transactions.

<figure><img src="/files/8jOwz3BhMWUCHTNgq4Am" alt=""><figcaption></figcaption></figure>

3. Finish Extra Settings

*For extra settings, please refer to the* [*tutorial*](/guide-book/boost-engagement/task-system/how-to-create-tasks/step3-extra-settings.md).

### Lending: Borrow & Supply

1. Choose Lending. TaskOn Community now support `Compound`, `AAVE`.
2. Click "Borrow/Supply token on Compound V2/AAVE V2".
3. Enter the task description & URL (optional).

<figure><img src="/files/X5GVSk85SWlV5FSDhpel" alt="" width="563"><figcaption></figcaption></figure>

4. Select network, and enter the token.

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

5. Set value cequirement: `At least`, `Less than`, `In the range`. You can also set the times of transaction (optional).
6. Click "`Test this task`" to verify the task process.

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

## Contract Interaction

Please note that your contract needs to be added to the whitelist. If your contract is not yet on the whitelist, please fill out the [**form**](https://docs.google.com/forms/d/e/1FAIpQLScanVhek7wT_0DMpL6rnPLnPHVh8JAcu4PHJZtT17jh12J0SA/viewform) and wait for approval.

1. Choose networks.

<figure><img src="/files/ZF0QNZCWd5uPPOCUGdJt" alt="" width="563"><figcaption></figcaption></figure>

2. Enter contract address

**Please note that your contract needs to be added to the whitelist. If your contract is not yet on the whitelist, please fill out the** [**form**](https://docs.google.com/forms/d/e/1FAIpQLScanVhek7wT_0DMpL6rnPLnPHVh8JAcu4PHJZtT17jh12J0SA/viewform) **and wait for approval.**

<figure><img src="/files/M2EtWyZrrTAFMwcXDv6t" alt="" width="563"><figcaption></figcaption></figure>

3. Enter the function.

<figure><img src="/files/x1r2ftQHU5zjLngFfvZN" alt="" width="563"><figcaption></figcaption></figure>

4. Choose the category and task url.

<figure><img src="/files/aZmGjaJvbvdk2hia5uBk" alt="" width="563"><figcaption></figcaption></figure>

5. Set task time.

<figure><img src="/files/PXvsRoQZq69pREDuMo53" alt="" width="563"><figcaption></figcaption></figure>

6. Preparation for task execution.

Please specify the preparations users should do to execute this task.

<figure><img src="/files/wZyk3Lg6A5YohZOTvEOc" alt="" width="563"><figcaption></figcaption></figure>

7. Task Instruction.

Please specify the instructions on how to complete this task

<figure><img src="/files/kjWhlRRdFeJfwAcrtYrJ" alt="" width="563"><figcaption></figcaption></figure>

8. Finish Extra Settings

*For extra settings, please refer to the* [*tutorial*](/guide-book/boost-engagement/task-system/how-to-create-tasks/step3-extra-settings.md).


---

# 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://taskoncommunitys-organization.gitbook.io/guide-book/community-hub/task-system/task-templates/on-chain-tasks.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.
