# Web3 Wallet

Introduction

This guide will walk you through the process of trading perpetual contracts on IntentX, covering:

* Wallet Connection & Account Creation
* Collateral Deposit
* Asset Selection & Leverage Setting
* Trade Placement & Execution
* Trade Monitoring & Closure
* Collateral Withdrawal

### Trade Orderflow Guide:

Reference this quick guide to walkthrough the trade order flow process:<br>

<div data-full-width="true"><figure><img src="/files/0yAaFWggczAFggDM2rDj" alt=""><figcaption></figcaption></figure></div>

All steps are explained in detail in the sections below.

### Step 1: Connect Wallet & Create Account

1. If in agreement with **Terms and Conditions** click **"I Accept"** and use the **Setup Wizard** to get started.**.**

   <figure><img src="/files/DNv3hrxHH5K9qjuvPVeI" alt=""><figcaption><p>"Agree to our terms"</p></figcaption></figure>

   <figure><img src="/files/aidXWmSjzoTJ7ZIfhsVR" alt="" width="192"><figcaption></figcaption></figure>
2. Click **“Connect Wallet”** and select your wallet type. Confirm you are on the correct network and follow the prompts to connect.

   <figure><img src="/files/FVgdWOvx0N1ZyrMxI6h3" alt=""><figcaption></figcaption></figure>
3. **Click "Create Account"** post-connection. Name your account, click "Create Account", accept terms and conditions if desired and sign transaction.

   <figure><img src="/files/zLxMWG7OhZfgn1CRx8Uh" alt=""><figcaption></figcaption></figure>
4. **How to establish a sub-account:** To isolate positions, you can establish multiple sub-accounts. To do this, simply **"Create Sub-Account"** under your main account profile.

<figure><img src="/files/5KIG5abD0V6JShL6EGy3" alt="" width="316"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** If you already have an account, simply connect your wallet.
{% endhint %}

### Step 2: Deposit USDC

1. Click **“Deposit”** and enter the USDC amount to be deposited into your account for use as collateral when trading. All funds are subject to a **12-hour fraud-proof withdrawal phase** once deposited.

   <figure><img src="/files/4JZo3gteq0PGDpONQlfp" alt="" width="324"><figcaption></figcaption></figure>
2. **Confirm** the transaction in your web3 wallet.

{% hint style="info" %}
**Note:** ETH is required for gas on whichever EVM you are operating on.
{% endhint %}

### Step 3: Select Trading Asset

1. Choose your desired trading asset from the available options in the **dropdown menu**.

   <figure><img src="/files/pB8QxhnEvpiu5y07CYwb" alt=""><figcaption></figcaption></figure>
2. You are able to view the asset chart upon selecting it.

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

### Step 4: Set Leverage & Trade Size

1. **Enter** your preferred leverage.
2. Determine your **directional bias**.
   1. Select "**Long"** if you believe the price of an asset will **increase** over the duration of your trade.
   2. Select **"Short"** if you believe the price of an asset will **decrease** over the duration of your trade.
3. Determine the **trade size**.&#x20;
   1. You can **manually enter** the amount or **use a percentage** of your maximum position as a reference.
4. You can now see the **quote** streamed from the solver to execute your order.

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

### Step 5: Confirm Intent to Trade

1. Choose between **Market or Limit Order**:

   1. Select **"Market Order"** for immediate execution at the current market price. ***You may experience slippage and the execution price may not exactly match the quote provided using this method.***&#x20;
   2. Choose "**Limit Order"** and input your **preferred entry price**. This type of order will execute once the market price matches the value you've specified in the future.

   <figure><img src="/files/CDt9dCK4CvRvUNeZPXc5" alt=""><figcaption></figcaption></figure>
2. Confirm that the solver quote is **acceptable**, click **"Long Trade" or "Short Trade"** and sign the transaction in your wallet to submit your **"Request for Trade"** on-chain.

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

{% hint style="info" %}
**Note:** IntentX automatically provides you with the best solver quote at any given time, this includes both execution price and fees.&#x20;
{% endhint %}

{% hint style="info" %}
**Note:** If you chose to execute a "Limit Order", the request for trade will exist on-chain until the market price matches your preferred entry price. You can cancel limit orders prior to the market meeting your entry price at any time.
{% endhint %}

### Step 6: Request for Trade

1. After you **confirm the intent** to take the trade, your **"Request for Trade"** is then sent on-chain to the solver along with the required collateral.
   1. Your trade will read as **"Pending"** until it is filled by the solver.

<figure><img src="/files/0joXtnTWOcrQGcBxrqOp" alt=""><figcaption></figcaption></figure>

1. The solver can then **accept , fill, and deposit** their corresponding collateral as **"Locked Margin"**.
2. The proportion of USDC collateral you used for the trade will now also become **"Locked Margin",** forming the **bilateral agreement**.

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

{% hint style="info" %}
**Note:** If price moves during this time or other factors are altered (i.e. funding rates), the order may remain unfilled until conditions meet the requirements for fill by the solver. If you experience this, you can choose to cancel your pending orders.
{% endhint %}

{% hint style="info" %}
**Note:** It is possible that your order will only be partially filled (<100%). In this case, the filled portion of your position will be listed as **"Open"**, while the unfilled portion remains listed as a **"Pending"** until the solver can complete the order.
{% endhint %}

### Step 7: Monitor Position & Account Health

1. Regularly check your open positions, account margin, and account health to avoid liquidation.

<figure><img src="/files/8tW1IufoudswJKvp1mCe" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** Because the accounts operate in cross-margin, you can deposit more USDC collateral in your account at any time to limit liquidation risk (it will automatically be added to your "Locked Margin" as necessary).
{% endhint %}

### Step 8: Confirm Intent to Close

1. Decide to close with a **Market** or **Limit order.** You can also reduce your position by clicking on the "**Setting**" Icon in "**Size**" column:<br>

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

<figure><img src="/files/Iy1BWORkqxbAXAl4lG0k" alt="" width="360"><figcaption></figcaption></figure>

Or **Instantly close** via Market order in the button below:

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

If you click on the arrow, the **classic blockchain close** will be available to click, and a transaction signature will be needed.

<figure><img src="/files/79p2rvnvuiaxCTzrsBO6" alt=""><figcaption></figcaption></figure>

1. If you close via **"Market"** your position will be closed **immediately**. ***You may experience slippage and the execution price may not exactly match the quote provided using this method.***
   1. When using **"Limit Order"** a **desired exit price needs to be inputed.** This type of order will close your position once the market price matches the value you've specified in the **future**.&#x20;
   2. You can **manually enter** how much of your position you would like to close or choose to close a **specific percentage** (i.e. 25%, 50%, 75%, or 100%).
2. Click "Close Trade", then **confirm and sign** the "Intent to Close" in your wallet.

### Step 9: Request to Close

1. After you **confirm the intent** to close the trade, your **"Request to Close"** is then sent on-chain to the solver.
   1. Your position status will show as **"Pending"** until it is closed by the solver.
2. The solver then **accepts** to close the trade, which **removes/returns** their **USDC collateral + PnL** to their unlocked balance.
3. Once closed by the solver, your **USDC collateral + PnL** is now **unlocked** and returned to your **"Allocated Balance"**.
4. This **unlocked balance** can now be used for **additional trades, as margin for existing positions in the account, or withdrawn.**
5. In the event that your "Request to Close" is **hung up or otherwise not executed** in a timely fashion, you can use the **"Force Close"** function.

{% hint style="info" %}
**Note:** It is possible that your order will only be partially closed (<100%). In this case, the closed portion of your position will be listed as **"Closed"**, while the unfilled portion remains listed as a **"Pending"** until the solver can complete the order.
{% endhint %}

### Step 10: Withdraw Collateral

1. Navigate to the withdrawal section, enter the amount of collateral to withdraw, and click **"Withdraw"**.
2. **Confirm and sign** the transaction in your wallet.

{% hint style="info" %}
**Note:** All withdrawals enter a **12-hour fraud-proof phase** for security measures. Your funds are not at risk during this phase and will be claimable after the fraud-proof phase is complete. This time window will be reduced over time as the platform is derisked.
{% endhint %}

### Important Trading Tips

* Monitor margin and account health vigilantly.
* Understand assets and leverage before trading.
* Only risk what you can afford to lose.
* Familiarize yourself with IntentX’s features and risk management tools prior to trading.

### Conclusion

Congratulations on completing the Web3 Wallets Tutorial for IntentX! You're now prepared to navigate and trade confidently on our platform. Remember to employ prudent risk management practices to protect your assets, and don't hesitate to reach out to our support team for any assistance.


---

# 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.intentx.io/intentx-platform/trading-on-intentx/trading-tutorials/web3-wallet.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.
