# About Hanji

#### What is Hanji?

Hanji is a fully on-chain order book exchange on Etherlink. All orders are placed and matched on-chain, making it fully decentralized, transparent, and composable.&#x20;

Hanji will initially launch as a spot decentralized order book exchange on Etherlink. Later, perpetual trading will be introduced, and LP tokens will be launched to enable passive liquidity provisioning.

#### Why Hanji?

While the on-chain DEX market is dominated by AMMs, we believe that the CLOB model is superior. This is because it offers price-time priority for orders, which creates competition between liquidity providers and allows CLOB DEXes to offer tighter spreads compared to AMMs.

There are two main reasons CLOBs are not widely used on-chain yet: first, most widely known matching algorithms are not suitable for on-chain execution as they have linear complexity and can breach gas limits per block or per contract call. The second reason is that gas fees are still quite expensive on most chains.

Hanji's matching algorithm addresses the first issue by having logarithmic complexity in the number of orders, effectively allowing matching in a fixed number of steps. The second issue is mostly addressed with advancements in blockchain infrastructure. For instance, gas costs on Etherlink would allow transaction costs of below 0.2 cents on Hanji.


---

# 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.hanji.io/about-hanji.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.
