# How to Use

<details>

<summary><strong>Open a sub-account</strong></summary>

1. Visit the [Extrafi XLend site](https://xlend.extrafi.io/) and **Connect Wallet**.
2. Click **"Try Smart Accounts"** at the top and **Create an Account**.

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2F0BFJyHJ7LFbOGetxMJV0%2Fimage.png?alt=media\&token=562fb51c-bc44-4c5f-9ac0-86479993f2a6)

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2FFGEx1YstYSOspU2AZk77%2Fimage.png?alt=media\&token=5fe7c9ca-3cf2-485a-8055-4b23f88e9a8e)

3. Confirm the transaction in your wallet.

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2Fgo6aChRrZR2Nxut7OmiS%2Fimage.png?alt=media\&token=d1adc8b2-de60-4d11-867e-ed31d6fdb8c0)

4. After creating smart accounts, you can switch between accounts by clicking **"Accounts > Wallet"** at the top, or manage them by clicking the button next to your connected wallet address.

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2Fy4wqNX2UYNmwVsClDWNy%2Fimage.png?alt=media\&token=424a5067-d3d0-485f-becd-5c424f88fc81)

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2FY0JkG1jsvtrx0QGhCmfl%2Fimage.png?alt=media\&token=a4f031fa-07c5-47a8-8358-eeaf732a0e2d)

5. You can create additional sub-accounts by clicking **"Create New Sub-account"** (maximum of 5 accounts per wallet allowed).

</details>

<details>

<summary><strong>Transfer/Merge assets between sub-accounts and wallet (EOA)</strong></summary>

#### **To transfer assets from your wallet to sub-accounts on Extrafi XLend, there are two ways:**

1. Copy your sub-account address and send assets directly from your wallet to that address.

Or,

2. Use the lending pool to transfer from wallet to sub-accounts:

Taking USDC as an example

* Switch to the sub-account and select the asset pool you want to supply;
* Enter the amounts you want to transfer and confirm the transaction in your wallet;
* Click **"Withdraw"** on your newly opened lending position;

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2FqEtHathxQar2F5fTFCWI%2Fimage.png?alt=media\&token=cacc22d4-7608-4a2c-ac94-606af8bec8f5)

* When withdrawing, the **"Target"** should be your sub-account like "Account 1";

<img src="https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2F76xMYorEEaevMBSEoXKu%2Fimage.png?alt=media&#x26;token=a5bc8d37-bfd4-42e3-af6b-48538e383c46" alt="" data-size="original">

* Enter the amount, withdraw, and confirm the transaction in your wallet;
* The assets will then appear in your sub-account. You can manage your balance by clicking **"Manage Balance"**.

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2FHJSDS8AxId5iVqL8pBQB%2Fimage.png?alt=media\&token=8334b27b-04e3-4af2-ab2e-ef535d54614b)

#### **To transfer assets from sub-accounts to your wallet(EOA) on Extrafi XLend:**

1. Click on **"Manage Balance"**.

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2FaEwSwKaEF6tyaJRrWyOg%2Fimage.png?alt=media\&token=9ba0b244-d187-4f9e-9010-e07fbcffcbb8)

2. Select the asset you want to transfer to the wallet and click **"Transfer"** (Multiple assets can be transferred simultaneously).

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2FAcxVoAlXmkfOEwjCBETA%2Fimage.png?alt=media\&token=d88e1a08-ca0b-4fff-840f-2d5ddfb81659)

3. Confirm the transaction in your wallet. Once confirmed, the assets will be transferred from your sub-account to your wallet.

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2FBa598kGVKg0hOfvN2GeU%2Fimage.png?alt=media\&token=b3e69012-39ab-4322-8308-95e6a1bc0d67)

</details>

<details>

<summary><strong>Compose bundle transactions</strong></summary>

1. When supplying, borrowing, or performing any actions, you can click **"Add to Batch"**.

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2FglODxEWMAbT6KMUzaVLJ%2Fimage.png?alt=media\&token=eeac6ecc-517f-4566-87b6-c452873b70e6)

2. All pending actions will appear in the bottom-right corner.

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2FQmqhKnpxM6hZRnNPmyrD%2Fimage.png?alt=media\&token=3d725ccb-dcfe-4023-bc68-6788aeed68d5)

3. Click on **"Pending Actions"** to review your batch. You can clear all actions if changes are needed. The simulated result appears below. After reviewing, click **"Confirm Batch"** to proceed.

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2FIl2zbkprz8Uitr9KZE6R%2Fimage.png?alt=media\&token=43e7417e-8e7d-4649-819a-1fa21677fa7b)&#x20;

4. Approve and Confirm the transactions in your wallet.

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2FvHuup6lNDTEpEfaXqevN%2Fimage.png?alt=media\&token=8514bf07-b85c-4be8-88d3-d94dfb1a13ec)

5. You’re all set!

![](https://2858456557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2K7L6qM6znh2wIGpWwOA%2Fuploads%2FTjWCDn2rTPLXDyEFiDWE%2Fimage.png?alt=media\&token=530340ea-3c07-4ab7-bc0e-ca9da41b9314)

</details>

<details>

<summary><strong>Easily track all assets across multiple accounts</strong></summary>

By simply tracking your wallet(EOA) address on DeBank, you can easily monitor all your positions and assets—including those in sub-accounts.

</details>
