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

# Overview

XPay offers a variety of tools designed to leverage the advanced cross-chain routing solutions provided by XSwap. This SDK enables other projects to seamlessly integrate cross-chain interactions into their platforms, utilizing the same robust backend infrastructure as XSwap, but with the flexibility to define custom interactions tailored to specific needs.

### Key Features

* **Cross-Chain Compatibility:** Facilitate seamless asset movements across different blockchain networks.
* **Framework Agnostic:** Easily integrate with any JavaScript environment or framework.
* **User-Friendly Integration:** Simplified setup and usage to minimize development time and effort.
* **Enhanced Security:** Built on Chainlink's secure and reliable Cross-Chain Interoperability Protocol (CCIP), ensuring safe cross-chain transactions.

### How it works

Our solution enables the execution of any smart contract on the destination chain while ensuring an exceptional user experience. Below, you will find a visual representation of the process, illustrated with a cross-chain token purchase example.<br>

<figure><img src="/files/X7QN79pVlxcvndT5lyty" alt=""><figcaption></figcaption></figure>

### Interoperability Made Easy

At XSwap, we understand that the primary challenge in achieving interoperability is the complexity of underlying technology. With XPay, we streamline this process, converting single-chain applications into cross-chain applications within minutes. Our framework-agnostic user interface ensures a seamless experience when selecting chains and tokens for transactions, making the process intuitive and user-friendly.


---

# 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.xswap.link/xswap/xpay/overview.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.
