# MultiChain - Chain Abstraction(Coming Soon)

#### How to support MultiChain?

DeltaTrade utilizes Near's Chain Abstraction technology to enable multi-chain support, allowing users to utilize DeltaTrade deployed on the Near blockchain without the need to hold a Near account.

#### Scheme

**Creation Steps:**

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

1. Users invoke a method on a contract controlled by Chain Abstraction on ChainA, transferring assets into the contract while including the desired Trading Vault parameters and their signature.
2. An Oracle detects the user's request on ChainA and relays it to the Near chain's contract.
3. The DeltaTrade contract on Near creates a dedicated internal account for the ChainA user (or uses an existing one if already created), verifies the user’s signature and the provided parameters (the internal account records a nonce, which is part of the signature to prevent replay attacks). If verified, it credits the mapped assets and executes the creation of the Trading Vault according to the user's parameters.

**Closing Steps:**

<figure><img src="/files/1RRbxVcrUPMBXcICsTtf" alt=""><figcaption></figcaption></figure>

1. Users sign a "Close" signature and send it to DeltaTrade.
2. DeltaTrade's Relayer role uploads the signature to the blockchain, sending it to the DeltaTrade contract.
3. The DeltaTrade contract verifies the user’s signature and provided parameters; if they match, it executes the Close operation and signs a withdrawal transaction on ChainA using Chain Abstraction technology.
4. DeltaTrade's Relayer obtains the Chain Abstraction signature and assists the user in executing the transaction on ChainA.
5. The user receives their assets on ChainA.


---

# 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.deltatrade.ai/introduction-to-deltatrade/features/multichain-chain-abstraction-coming-soon.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.
