# How Does XChain Work

<figure><img src="/files/vBsFbvKrUeskj7OQfcfb" alt=""><figcaption><p>Figure 1: XChain workflow</p></figcaption></figure>

As per Figure 1, XChain works by opening secure communication channels between its members. This workflow is designed to reduce network load while providing a proper and efficient communication channel that is usable in different ways.&#x20;

By building a dynamic, verifiable and unpredictable chain of XChain nodes, XChain is able to quickly and safely certify many types of data that don’t require immediate finality or that don’t require immediate or preemptive finality.&#x20;

At the same time, XChain workflow requires strong encryption and cryptographic identity verification, thus generating valid and verifiable attestations that can be submitted to the broader DEMOS Network consensus.&#x20;

XChain design is especially suited for exchanging data rapidly, safely and with the lowest possible cost.


---

# 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://xcomerc20.gitbook.io/xmessenger-version-2-testnet/overview/how-does-xchain-work.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.
