> For the complete documentation index, see [llms.txt](https://docs.demodyfi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.demodyfi.com/project-overview/technical-architecture/cross-chain-swap.md).

# Cross-chain Swap

Polkadot defines a low-level integration protocol that can be used to facilitate communication between parachains within the Polkadot network called cross-chain message passing (XCMP), and a way to share trusted logic between chains on the Polkadot network called shared protected runtime execution enclaves (SPREE).

![](https://i.imgur.com/tzJYrrX.png)

The asset cross-chain bridge gateway serves as a bridge connecting the multi-currency asset market and the Polkadot DeFi market, allowing users with different assets to seamlessly participate in the upcoming Polkadot DeFi market more conveniently. User transfers are generated by the gateway and sent to the Demodyfi platform which performs a 1:1 conversion of assets. Finally, all the tokens on the chain can be circulated on the Demodyfi platform to realize the generation of different parachains currency value circulation. The [XCMP protocol](https://wiki.polkadot.network/docs/en/learn-crosschain) will allow any parachains to interoperate by passing messages between them. Furthermore, as bridges to other chains are launched (such as those to Bitcoin or Ethereum) the parachains will be able to operate with these as well.

### ERC-721 Token Transfer (beta)

Although it’s possible to swap any asset cross-chain, Demodyfi is implementing a `modular multi-directional blockchain` bridge built by ChainSafe and provided by Moonbeam, which connects our `Beta TestNet` and Ethereum’s`rinkeby TestNet`. The bridge is at its core, a message-passing protocol. Chainbridge relies on trusted relayers to perform, however, it features a mechanism that prevents any individual relayer from abusing their power and mishandling funds. This means that besides ERC-20 tokens, also ERC-721 implementations and NFT capabilities will be available to use on the Demodyfi platform.


---

# 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.demodyfi.com/project-overview/technical-architecture/cross-chain-swap.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.
