> For the complete documentation index, see [llms.txt](https://docs.anyroute.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anyroute.xyz/technology/markdown.md).

# Cross Chain Swap

AnyRoute’s Aggregated Swap system is designed to support **cross-chain token swaps** in the near future.

In the upcoming version, users will be able to **swap Token A on Chain X directly to Token B on Chain Y** — **with a single click**, no need for manual bridging, no asset pre-deposit, and no network switching.

***

#### 🚧 Current Status

This feature is currently under development. The technical design is complete, and integration is planned for upcoming releases.

***

#### ✅ Technical Architecture

The cross-chain swap mechanism is based on the integration of **NEAR Intents** and **OmniBridge**:

1. **NEAR Intents**\
   Enables users to express high-level transaction goals ("swap A on X chain to B on Y chain"). The routing and execution logic is handled automatically off-chain and on-chain.
2. **OmniBridge**\
   Facilitates secure, bi-directional cross-chain communication for both asset transfers and function calls.
3. **AnyRoute Aggregator**\
   Receives user intents, computes optimal routes, executes swaps on source chains, and handles bridging + final delivery on destination chains.

***

#### 🔁 Workflow Overview

```
Token A (Chain X)
    ↓ User initiates a single-click swap
 NEAR Intent → Aggregator receives and calculates path
    ↓
Swap executed on Chain X → Bridge via OmniBridge
    ↓
Swap finalization on Chain Y → Deliver Token B to user
```

***

#### 🌟 Key Highlights

* **No Pre-Deposit Required**: Users don’t need to pre-fund assets on the destination chain.
* **Any Token / Any Chain**: Flexible architecture supports arbitrary token pairs across chains.
* **Seamless UX**: No network switching or bridging knowledge required from the user.
* **Optimized Routing**: Best prices via DEX/CEX liquidity aggregation across chains.

***

#### 📅 Launch Timeline

This feature is planned for release in a future update. Stay tuned via our Twitter and Discord for progress and early access opportunities.


---

# 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.anyroute.xyz/technology/markdown.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.
