# Bitcoin Fragment Sweep

<figure><img src="/files/2f7sAgpBcH8WJlGEKHr0" alt=""><figcaption><p>Sequence Diagram for SweepTx and RefundTx</p></figcaption></figure>

Intuitively, this sweep process works like commitmentTx in lightning, where the client always have an exit transaction available in case the counterparty refuses to respond.&#x20;

In Boomerang, before a Fragment signs on the SweepTx, the new Fragment Judge proposes a Refund Transaction on the previous state of the reserve. Once all the new Fragment signatories sign on the refund transaction, the Sweep signing begins on the unlocked Fragment address.


---

# 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.twilight.org/boomerang/bitcoin-fragment-sweep.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.
