# xDAI Integration

xDAI is an Ethereum sidechain that operates a POS (Proof-of-Stake) validation mechanism (the new validation mechanism used in Ethereum 2.0). xDAI uses the same wallet system and signatures, meaning that your Ethereum wallet will work with xDAI.

On DMEX xDAI is only used for trade processing. All funds are stored on Ethereum as before.

### Do you need to purchase xDAI to use DMEX?

No. You do not need to do anything, xDAI is integrated as part of the stack and is not affecting the user in any way. You simply deposit to DMEX as before on Ethereum network.

### How does the Ethereum contract communicate with the xDAI contracts?

Ethereum contracts are connected to the xDAI contracts through a decentralized bridge that relays messages between the two chains.

{% hint style="info" %}
More information on the xDAI sidechain can be found [here](https://www.xdaichain.com/).
{% endhint %}


---

# 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.dmex.app/xdai-integration.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.
