> For the complete documentation index, see [llms.txt](https://docs.degenlab.io/decentralized-mining-pool/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.degenlab.io/decentralized-mining-pool/flow-diagrams.md).

# Flow diagrams

### Diagram with the flow of the miners and transactions

<figure><img src="/files/0lk0QtliaNXyUkvahlin" alt=""><figcaption></figcaption></figure>

As displayed there are a few bitcoin transactions

To participate in the mining process:

1. sending funds from each miner to the taproot FROST multisig script address
2. unlocking the funds by signing with at least K miners (the threshold picked)  and sending them to the Stacks address

To commit the Stacks block on Bitcoin when winning:

1. miners again send funds to the taproot FROST multisig script address
2. the script spends path is unlocked, the block is committed and the rewards will get on the Stacks' address of the Smart Contract.

### The script miners are sending funds to

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

The script is thought out so that funds are never lost. If the transaction is not signed by at least K miners, each miner can reclaim his funds from the script after a picked number of blocks, 10 in this case.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.degenlab.io/decentralized-mining-pool/flow-diagrams.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
