> For the complete documentation index, see [llms.txt](https://docs.payram.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payram.com/features/smartsweep.md).

# SmartSweep

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

SmartSweep automatically transfers funds from Customer Deposit Wallets to your designated Cold Wallet, helping you consolidate balances securely and efficiently, without manual intervention or exposed keys.

***

### **Why it matters**

* **Save time:** No more manual consolidation of deposits.
* **Improve efficiency:** Maintain optimal wallet balances for payouts and settlements.
* **Enhance security:** Sweep operations use smart contracts, not private keys.
* **Stay audit-ready:** Every sweep transaction is logged and traceable.
* **Lower costs:** Fewer transactions mean reduced operational and network fees.

***

### **SmartSweep workflow**

1. **Customer Deposit Wallets** receive funds from individual users.
2. **SmartSweep** automatically detects available balances that meet the pre-configured threshold.
3. The system initiates an onchain transaction.
4. Funds are moved from deposit wallets to your designated **Cold Wallet**.
5. Each sweep is confirmed, logged, and visible in your **SmartSweep Dashboard**.

***

### **How it works**

Once a wallet is activated, PayRam can sweep funds automatically based on three configurable settings:

1. **Amount:** SmartSweep is triggered when either,
   * An individual deposit wallet’s balance reaches the set amount, or,
   * The total balance across multiple wallets in a batch reaches the set amount.
2. **Address count:** The sweep occurs after a set number of deposit addresses have received funds.
3. **Time:** The sweep occurs after a set time period has elapsed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.payram.com/features/smartsweep.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.
