# 自动合并奖励

TWINS钱包有一项功能，可以让您在收到区块奖励时自动合并。可以设置为让钱包检查每个钱包地址里的碎币，并自动将它们合并在一起，最大金额为设定值。&#x20;

**点击“&#x20;*****工具>调试控制台*****&#x20;”** \
输入 **`autocombinerewards true x`**

![](/files/-Lbe2ku7HKONHWPZoHsY)

![](/files/-Lbe2mHN-AzIX1gw09bg)

**或者**

**点击“*****工具>打开钱包配置文件*****”** \
在*twins.conf*文件中添加 **`autocombinerewards=x`** &#x20;

![](/files/-Lbe2oO0YqSqzyUlBauV)

![](/files/-Lbe2pmXis7Mm1pvFWD3)

这将启用该自动合并功能（更改twins.conf文件后必须重新启动钱包才能生效）。 钱包将定期检察每个地址中的“碎币”，并将它们合并成您设置的金额。&#x20;

**`autocombinerewards true x`** 命令会自动将你收到的所有权益（stake）/主节点（masternode）奖励合并到一个input中，x是您指定的最大金额。\
如果您希望Twins中每个input最小为10000 TWINS，那么您需要在调试控制台中输入该命令，如下所示：**`autocombinerewards true 10000`**。然后，任何小于10000 TWINS的input将被合并到新input中，重复此过程，直到超过您设定的x值。超过该值后，其他碎币将开始合并为另一个input。另外收到奖励时，钱包必须处于解锁状态才能使此功能生效。 <br>

![使用该功能前](/files/-Lbe2rq2YqkK_7QdO72L)

![自动合并后](/files/-Lbe2tOZztd68ysKOgai)

这功能可以避免钱包超过交易的最大金额，因为不必每天手动整理你的区块奖励，避免其超过该阈值。 \
\
需要注意的一点，自动合并会产生交易费用，因此每次收到stake / masternode奖励，合并汇入时都会产生小额费用。

![自动合并会产生小额费用](/files/-Lbe2vGpeyQu1MYCdRO7)

您也可以同时使用这2个命令 **`autocombinerewards`** &#x548C;**`setstakesplitthreshold`**，自动整理input大小。 \
例如：\
\&#xNAN;**`autocombinerewards true 5000`** &#x548C;**`stakesplitthreshold 10000`**\
这命令会自动将你5000以下的TWINS input都合并到一起，直到超过5000 TWINS；但input超过20000 TWINS时，它们将被分成两个单独的input，此功能也必须解锁钱包才能生效。


---

# 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.win.win/twins/zhong-wen/twins-qian-bao/zi-dong-he-bing-ying-bi.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.
