# Gas Sweeping

## What is Gas Sweeping?

**Gas Sweeping** is an essential part of how inabit automates the secure movement of funds across deposit addresses and wallets. Every widget created within the inabit Terminal collects user deposits to unique, on-chain addresses. To ensure these funds are accessible and manageable at scale, inabit uses **sweeping mechanisms** to transfer them into centralized organization wallets.

Gas Sweeping refers to this **automated fund consolidation**, and requires blockchain-native gas fees to execute transactions securely and efficiently.

### How Gas Sweeping Works

When users deposit funds via a widget (e.g., USDT on Tron or Ethereum), the funds initially sit in a **dedicated deposit address** generated for that session. To make these funds usable for your organization, the Terminal automatically "sweeps" them into a central wallet.

#### **Key Behaviors**

* Sweeping is triggered based on the widget's configuration:
  * **Daily**, **Weekly**, **On-demand**, or **Never**
* Each sweep consumes **gas fees** (TRX for Tron, ETH for Ethereum, etc.)
* To prevent failed or stuck transactions, inabit handles sweeping gas from a **separate station wallet**, not from the customer’s deposit address

#### Smart Sweeping Design

* **Gas Separation:** Gas for sweeping is drawn from your organization's **gas station wallet**, not from the deposit address, ensuring funds are always sweepable.
* **Fail-safe Logic:** inabit’s infrastructure monitors sweep attempts and retries if gas is insufficient.
* **Fee Control:** You can configure whether the gas cost is covered by you (the merchant) or passed on to the end user at the widget level.

### Viewing Your Gas Balances Status

On the Terminal Dashboard, you’ll find a section showing gas balances per blockchain:

* Tron
* Ethereum
* BSC (Binance Smart Chain)
* Polygon

These balances represent how much gas is available to support sweep transactions.

### ✅  Best Practices

{% hint style="success" %}

* Keep your gas balances topped up to avoid failed sweeps.
* Monitor the gas status from the dashboard.
* Use the **"Add Gas"** feature (explained below) to easily fund your sweep stations.
  {% endhint %}


---

# 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://docs.inabit.com/inabit-terminal/terminal-guide/gas-features/gas-sweeping.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.
