# Buy/Sell Tokens

{% embed url="<https://youtu.be/heC31CdwTQQ>" %}
Video Tutorial: Buy, Sell or Transfer Tokens
{% endembed %}

***

The **Buy/Sell** feature provides an easy and simple way to Buy/Sell a token in just a few clicks, without the need to use third-party services, register accounts on various platforms, etc.

Our short video tutorial on how to buy/sell or transfer tokens:

### How to Buy/Sell a token

1. To **buy/sell a token**, navigate to the main menu and follow the prompts provided in the bot:

<figure><img src="/files/irkBC0kSEz5T3xLBIUHA" alt=""><figcaption><p>Main Menu</p></figcaption></figure>

2. In the main menu, clic&#x6B;**`🌟Buy/Sell`**
3. Click the corresponding **`👛Buy`** or **`🌟Sell`** buttons:

<figure><img src="/files/0LyKXs8ORYtUIu0jRllv" alt=""><figcaption><p>Buy or Sell </p></figcaption></figure>

4. Select your Buy or Sell parameters:

<details>

<summary><mark style="color:green;">Buy</mark> Parameters</summary>

![](/files/iCIovEuI7icSrFwgMAtO)

* **Buy Settings (always enabled)**\
  1\. `🟢`[`MEV protection`](#anti-mev-protection.-what-is-it-how-does-it-work) - additional protection measures which protects users against MEV-bots/sandwich attacks.\
  2\. `🟢 Fail protection` - attempts to replicate the transaction prior to broadcasting it to the network. This feature is aimed at avoiding wasting gas on transactions that will potential fail on the <br>
* **Gas:**\
  1\. `Auto` - allow the bot to set gas settings automatically based on current network gas prices. This setting takes into account the current network gas prices as well as an additional **gas delta** to minimize the chance for a transaction to fail on the network\
  2\. `Custom` - select a custom min/max gas threshold<br>
* **Slippage:**\
  1\. `Auto` - slippage is set automatically to minimize the chance for a transaction to fail on the network\
  2\. Custom: % - select a custom slippage value\
  3\. `5%, 10%, 15%, 20%`  - a predefined slippage value<br>
* **BNB/ETH to spend:**\
  1\. `MAX` - select the buy amount for the maximum amount of your wallet balance\
  2\. `0.1, 0.3, 0.5, 0.7, 1 BNB/ETH` - select a predefined amount of your wallet balance to spend\
  3\. `Custom %` **-** select a custom amount of your wallet balance to spend value<br>
* **Choose Wallet:** select the desired wallet to use<br>

</details>

<details>

<summary><mark style="color:red;">Sell</mark> Parameters</summary>

![](/files/3lkr5wilVGRnGEFIAnv6)

* **Buy Settings (always enabled)**\
  1\. `🟢`[`MEV protection`](#anti-mev-protection.-what-is-it-how-does-it-work) - additional protection measures which protects users against MEV-bots/sandwich attacks. \
  2\. `🟢Fail protection` - attempts to replicate the transaction prior to broadcasting it to the network. This feature is aimed at avoiding wasting gas on transactions that will potential fail on the&#x20;
* **Gas:**\
  1\. `Auto` - allow the bot to set gas settings automatically based on current network gas prices. This setting takes into account the current network gas prices as well as an additional **gas delta** to minimize the chance for a transaction to fail on the network\
  2\. `Custom` - select a custom min/max gas threshold
* **Slippage:**\
  1\. `Auto` - slippage is set automatically\
  2\. Custom: % - select a custom slippage value\
  3\. `5%, 10%, 15%, 20%`  - select a predefined slippage value
* **Amount of tokens to Sell**\
  1\. `10%, 15%, 25%, 50%, 75%, 100%` - a predefined amount of tokens to sell\
  2\. `Custom` **-** select a custom amount of tokens to sell
* **Choose Wallet:** select the desired wallet to use

</details>

5. Next, enter the contract address of the token that you wish to buy/sell:

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

6. Click **`🤝Confirm`** to confirm your transaction:

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

7. A corresponding message will then be displayed with the TX hash for your buy/sell:

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

8. Enter the **`/start`** command in your Hodless Bot after a successful Buy/Sell transaction to update your wallet balances interface.

### Token Buy/Sell FAQ

<details>

<summary>'<code>No information available on this address</code>' <mark style="color:purple;">error when pasting a contract</mark></summary>

![](/files/fSk2XAWqN57OXj6Q1RdY)\
\
This error occurs when the chain of the pasted contract is different than the chain that you have selected in the main menu:

![](/files/puieiIVDRZBWceGM8V27)

When setting up a buy/sell, make sure that the network selected in the main menu correlates with the network for the pasted contract address.

</details>

<details>

<summary><mark style="color:purple;">Anti-MEV protection. What is it? How does it Work</mark></summary>

**MEV protection** (Anti-MEV) is a protection feature which aims to protect user's transactions against MEV-bots and sandwich attacks:

![](/files/Hg0w78NJVdCsJC4EWI14)\
\
By keeping transactions private, they are not visible to MEV-bots until they are mined on the blockchain, thus mitigating sandwich attacks and MEV-bot attacks.\
\
Anti-MEV is **always enabled** for Hodless bot Buy/Sell transactions to provide all users with additional protection.

</details>

<details>

<summary><mark style="color:purple;">Fail Protection. What is it? How does it work?</mark></summary>

**Fail protection** is automated system which attempts to estimates gas fees based on current blockchain conditions when sending a transaction.&#x20;

![](/files/JQVvOaKE2uxS4w5yWIoe)\
\
This features is aimed at ensuring that gas is not wasted on transactions that would otherwise be likely to fail.\
\
Fail protection is **always enabled** for Hodless bot Buy/Sell transactions.

</details>


---

# 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://hodless.gitbook.io/product-docs/token-trading/buy-sell-tokens.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.
