> For the complete documentation index, see [llms.txt](https://mitoswap.gitbook.io/mitoswap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mitoswap.gitbook.io/mitoswap/mechanism.md).

# Mechanism

MitoSwap utilizes an API router to facilitate transfers and trades for traders. The API script is designed in a decentralized manner, ensuring that neither the deployer nor the wallet owner holds any control or authority.

Given the unique characteristics of Bitcoin Ordinals, traditional smart contract functionality, such as that found in platforms like Uniswap, is not feasible. Therefore, the only viable approach to enable BRC20 trading is through an API.

Using an API has its advantages and disadvantages, but currently, it is the only practical option available. Now, let's delve into how the MitoSwap API handles transfers and trades.

<figure><img src="https://3431922392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSDnLsYJTGSyd9SsLAYES%2Fuploads%2FueOPQVIuIp6adIO9HovE%2FFrame%2069.png?alt=media&amp;token=c1f4e94f-64e4-460e-9e9c-862ee823e68d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3431922392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSDnLsYJTGSyd9SsLAYES%2Fuploads%2FwwTf8vkmusGreShU2SuL%2FFrame%2070.png?alt=media&amp;token=5cb9fef5-95b3-4c79-84d8-0f579f2989bd" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3431922392-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSDnLsYJTGSyd9SsLAYES%2Fuploads%2FXMV0XlqHAikz4rL2C3AH%2FFrame%2071.png?alt=media&amp;token=9a5904e4-2abb-4bdf-8120-056e029ec651" alt=""><figcaption></figcaption></figure>
