# Flash loan

Flash loans are uncollateralized loans without borrowing limits in which a user borrows funds and returns them in the same group transaction. This feature is primarily useful for developers that want to do arbitrage or liquidations.

The implementation of the flash loan works as follows:

* When requesting a flash loan, you must specify the index in the transaction group of the repayment transaction (must be after).
* The repayment transaction must be coupled with an application call signaling the end of the flash loan.
* The repayment amount must be equal to the flash loan amount plus the flash loan fee.

This innovative design allows flexible flash loans where one can request multiple flash loans from different pools concurrently.&#x20;

Developers can find more information about how to use flash loans by visiting our [SDK](/developer/official-sdks.md).


---

# 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.folks.finance/architecture/flash-loan.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.
