# Templates

{% embed url="<https://youtu.be/3LTjqnIiC8o>" %}

{% hint style="success" %}
Templates allow you to switch between different settings with just one click. You can configure buy, safety, and auto-sell rules within your templates.
{% endhint %}

## Create a Template

{% stepper %}
{% step %}

### Add new Template

<figure><img src="/files/5wDlxc9rOVjPNSQ5CYF1" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Name your template

<figure><img src="/files/eSCe0b0D2ZenAt8J3pzb" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Configure your Template

{% tabs %}
{% tab title="Buy" %}

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

<table data-header-hidden><thead><tr><th width="164">Label</th><th>Description</th></tr></thead><tbody><tr><td><strong>Select wallets</strong></td><td>Choose which wallets to execute the trade from. You can use multiple simultaneously.</td></tr><tr><td><strong>Slippage</strong></td><td>Set the max price deviation allowed for a successful buy.</td></tr><tr><td><strong>Buy Gwei</strong></td><td>Set the gas price for buy transactions. Higher = faster.</td></tr><tr><td><strong>Exact % / Tokens or fail</strong></td><td>Define the exact % of tokens or amount to buy. If the conditions aren't met, the transaction fails.</td></tr><tr><td><strong>Max Tx or fail</strong></td><td>If toggled on, the bot will attempt to buy the max available tokens under slippage settings. If that amount can't be bought, the transaction fails.</td></tr><tr><td><strong>Approve Gwei</strong></td><td>Set the gas price for token approval transactions.</td></tr><tr><td><strong>Spend amount per wallet</strong></td><td>Set the total amount (in native coin, e.g., BNB) each wallet will spend. Useful for controlling position size.</td></tr></tbody></table>
{% endtab %}

{% tab title="Safety" %}

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

<table><thead><tr><th width="162">Label</th><th>Description</th></tr></thead><tbody><tr><td>Anti-MEV</td><td>Enables protection against MEV bots by making your transactions less predictable and less profitable to front-run.</td></tr><tr><td>Degen Mode</td><td>Disables all safety checks. Use only if you know what you're doing—no limits, no filters, pure speed.</td></tr><tr><td>Max Buy Tax</td><td>Sets the maximum acceptable buy tax (%) for a token. Prevents purchases of tokens with high buy fees.</td></tr><tr><td>Max Sell Tax</td><td>Sets the maximum acceptable sell tax (%) for a token. Prevents entering tokens that are hard to exit.</td></tr><tr><td>Min Liquidity</td><td>Sets the minimum liquidity required for the token. Helps avoid low-liquidity rugs.</td></tr><tr><td>Max Liquidity</td><td>Sets the maximum liquidity allowed. Useful for sniping low-cap launches and avoiding large-cap tokens.</td></tr><tr><td>Min Marketcap</td><td>Defines the minimum market cap a token must have to be eligible for buying.</td></tr><tr><td>Max Marketcap</td><td>Sets the maximum market cap limit. Useful for filtering early-stage tokens.</td></tr></tbody></table>

{% endtab %}

{% tab title="Sell" %}

<figure><img src="/files/52rf78ktE9USky5ZPLLt" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="211">Label</th><th>Description</th></tr></thead><tbody><tr><td>Select Trigger</td><td>Choose between Market Cap or % Profit as the condition for triggering the sell.</td></tr><tr><td>Profit is ≥</td><td>Sets the profit percentage at which the sell action will be triggered.</td></tr><tr><td>Sell [%]</td><td>Determines what percentage of tokens to sell once the trigger condition is met.</td></tr><tr><td>Wallet Selector</td><td>Choose which wallet(s) will execute the sell. Supports multi-wallet setups</td></tr><tr><td>Add Step</td><td>Add multiple take-profit steps with different conditions and sell percentages.</td></tr><tr><td>Slippage</td><td>Defines the max price deviation you’re willing to accept when selling.</td></tr><tr><td>Sell Priority</td><td>Gas fee in Gwei to prioritize the sell transaction. Higher values may result in faster execution.</td></tr><tr><td>Expiration</td><td>Sets how long the template will remain valid (in hours) before it expires.</td></tr></tbody></table>

{% hint style="info" %}
Sell % always works for the remaining balance.

step1: at 100% profit -> sell 50%\
\
step2: at 500% profit -> sell 50% — will sell 50% from remained balance after 1st step (= 25% from initial)\
\
step3: at 1000% profit -> sell 50% — will sell 50% from remained balance after 2nd step (= 12.5% from initial)

After all these steps, 12.5% will be left on your balance as a moon bag.
{% endhint %}
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### ✅Double-check all settings and save template&#x20;

{% endstep %}
{% endstepper %}

## Templates in action

{% embed url="<https://youtu.be/Ro4RYICvRuk>" %}


---

# 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://blazingapp.gitbook.io/tutorials/webapp/templates.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.
