# Auto top-up of energy

**Auto energy refill** - is the best solution for hot wallets (addresses that make a large number of outgoing transactions). Configure auto-refill for an address and it will always have a set amount of energy.

The auto energy refill feature has 3 configurable parameters:

1. **Minimum threshold** - if the energy is below the minimum threshold value, a specified amount will be refilled
2. **Add** - the amount of energy that needs to be added when it falls below the minimum threshold
3. **Lease term** - can take values of 1 hour or 1 day

### Examples of Auto Energy Refill operation

#### Example 1. The most optimal

**Address A enabled** [**perpetual energy lease**](/docs/feesaver/unlimited-rental.md)**.** For example, for address A a perpetual lease of 500K energy is enabled. Minimum threshold - 200K energy, Add - 200K energy, Lease term - 1 hour. After order confirmation no energy will be delivered to the address because 500K > 200K and the threshold condition is not met.&#x20;

1. Address A makes transactions: 65K, 131K, 131K (Total spent 327K energy). Remaining energy after transactions is 173K. 173K < 200K, so a refill of 200K energy will be triggered. After the refill address A will have 373K energy.
2. Address A does not make transactions. No refills occur, the monitoring system waits for the energy amount to drop below 200K

#### Example 2.&#x20;

**Address A has its own energy.** Own energy is 100K. Minimum threshold - 200K energy, Add - 200,000 energy, Lease term - 1 hour. After order confirmation 200K energy will be delivered to the address for 1 hour. The address will have 300K energy

1. Address A makes a transaction costing 131K. Remaining energy after the transaction is 169K. 169K < 200K, so a refill of 200K energy will be triggered. After the refill address A will have 369K energy
2. Address A does not make transactions. After 1 hour there will be a Reclaim, which means the remaining energy 100K < 200K. A refill of 200K energy will be triggered. Thus, if the address remains below the specified threshold, a new energy refill will occur every hour

#### Example 3.

**Address A has no own energy.** Minimum threshold - 200K energy, Add - 200,000 energy, Lease term - 1 hour. After order confirmation 200K energy will be delivered to the address for 1 hour&#x20;

1. Address A makes a transaction costing 65K. Remaining energy after the transaction is 135K. 135K < 200K, so a refill of 200K energy will be triggered. After the refill address A will have 335K energy
2. Address A does not make transactions. After 1 hour there will be a Reclaim, which means remaining energy 0 < 200K. A refill of 200K energy will be triggered. Thus, if you enable auto-refill and do not use the energy, a new energy refill will occur every hour

### Step-by-step instructions on how to connect an address to the auto-refill function:

#### Step 1

***

Got questions? Write to our support service [t.me/feesaver\_support](https://t.me/feesaver_support)


---

# 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://feesaver.gitbook.io/docs/feesaver/auto-refill.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.
