# Swap

Our solution makes it possible to build DeFi dApps directly on Bitcoin. Our swap dApp, currently available for demo purposes on the Devnet, is a Uniswap v2 fork for trading Ordinals and Runes (not to be mistaken with the core product). Currently operating on Bitcoin's TN4, the dApp enables swapping digital assets on Bitcoin without bridging to other networks.

Using an Automated Liquidity Protocol (ALP), the dApp allows for decentralized trading through liquidity pools. This way, our swap dApp enables efficient, on-chain trading of Ordinals and Runes, keeping liquidity and transactions entirely within the Bitcoin ecosystem.


---

# 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://midl.gitbook.io/midl/examples-of-use/swap.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.
