# Using Ledger on Spin

## Introduction

There are two main ways to use Ledger:

1. Using "Near Wallet".
2. Using the native Ledger support.

{% hint style="warning" %}
At this time, "Near Wallet" is the only option available for spot and perps. However, DeFi Option Vaults support both NEAR Wallet and native Ledger connection.
{% endhint %}

{% hint style="success" %}
Before you start, make sure you have a Ledger with the NEAR application installed. You can install the NEAR application using Ledger [Live.](https://www.ledger.com/ledger-live)
{% endhint %}

## Using NEAR Wallet

1. Open [trade.spin.fi](http://trade.spin.fi/) and tap the “Connect to NEAR” button.<br>

   <div align="left"><img src="https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FSJTNSOjdtOloSd9wArcd%2FUntitled-13.png?alt=media&#x26;token=a8daf22d-7fd5-4a71-847d-4bf0db1b163f" alt="Untitled"></div>
2. Select “NEAR Wallet” in the wallet selector.<br>

   <div align="left"><img src="https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FL0Ajy9GToIosLCldIb0t%2FUntitled-14.png?alt=media&#x26;token=3dc8c735-d305-4f85-a47c-eadd561e1ac5" alt="Untitled"></div>
3. In the NEAR Wallet, tap on “Import Existing Account”.

   <div align="left"><img src="https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FkTmPu7C7Crje4LyiYIv7%2FUntitled-15.png?alt=media&#x26;token=af6f40b8-b325-4a1b-b99f-efb4f3dd148d" alt="Untitled"></div>
4. Select “Sign in with Ledger”

   <div align="left"><img src="https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FZIxdSgiIQwWG77fNLZ9L%2FUntitled-16.png?alt=media&#x26;token=e32dc274-dff6-4dd9-bb70-a396e15df029" alt="Untitled"></div>
5. Connect Ledger to your computer.
6. Unlock Ledger with your PIN.
7. Open the NEAR application on your Ledger.
8. Press the "Connect Ledger" button in the top right corner.

   <div align="left"><img src="https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FuFfQWygwpDlLauWkGLPL%2FUntitled-17.png?alt=media&#x26;token=64ca66d3-a625-4b09-9132-f78b17fff821" alt="Untitled"></div>
9. Tap on "Connect" in the pop-up window.<br>

   <div align="left"><img src="https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FxISP4sMNNbiEgvrxbZkL%2FUntitled-18.png?alt=media&#x26;token=d6d9b3db-54b2-4e15-b862-3e6d8f3d52f0" alt="Untitled"></div>
10. (Optional) If you want to import an existing account that was created by Ledger Live, you may need to change the HD Path in "Advanced Options". You can find your account's HD Path in Ledger Live by going to “Accounts” → “NEAR” → “Edit account” → “Advanced” (See attached images).\
    \
    **You can read about HD Path** [**here**](https://thebitcoinmanual.com/articles/btc-derivation-path/)**.**<br>

    <div align="left"><figure><img src="https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FiaZJ8PFmEgoRVm9xMeSe%2FScreenshot%25202023-03-28%2520at%252014.48.34.png?alt=media&#x26;token=8adb8e4d-9279-4182-ba74-cbb2f503b66f" alt=""><figcaption></figcaption></figure></div>

    <div align="left"><figure><img src="https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FNfQm50WZiF6aE88hqs6o%2FUntitled-19.png?alt=media&#x26;token=07c43a02-d9f2-4b9f-aef6-7146b588b3df" alt=""><figcaption></figcaption></figure></div>

    ![](https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FMLjmk0YzdtzQ9zvCoS7W%2FUntitled-20.png?alt=media\&token=adb32efd-e627-4e15-bff0-a16b763e8b31)
11. In the “NEAR Wallet”, tap on “Authorize”\
    ![](https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FCflzzllsCeFt3rLCxxqY%2FUntitled-21.png?alt=media\&token=591d3a50-8460-42ec-8f1a-c66e74b63544)
12. Next, confirm the public key on your Ledger device.
13. Select the account you wish to import and tap on “Next”.\
    ![](https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FvAV90XfnQ8XfNZ23TTXr%2FUntitled-22.png?alt=media\&token=a61d58d4-c487-4447-9b46-3fdd25bff17f)
14. Tap on “Connect” to link your account with [Spin.fi](http://spin.fi/)

{% hint style="warning" %}
Sometimes NEAR Wallet can become stuck and not allow you to connect your account. If you encounter this problem, try again later.
{% endhint %}

<div align="left"><figure><img src="https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FrxPrlc7Pr8Ye68tVwLYC%2FUntitled-23.png?alt=media&#x26;token=7430273b-ed01-4a4d-816f-4fc6763dbef3" alt=""><figcaption></figcaption></figure></div>

**Done!**

## Using Native Ledger connection

1. Tap on “Connect Wallet” on [vault.spin.fi](https://vault.spin.fi/)
2. Select Ledger in the wallet selector

   <div align="left"><img src="https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FogHjvVRigw0k8DPyzyf2%2FUntitled-24.png?alt=media&#x26;token=3e099df2-6b24-4dd4-af22-342bbb29175f" alt="Untitled"></div>
3. Connect Ledger to the computer.
4. Unlock Ledger with your PIN.
5. Open the NEAR application on your Ledger.
6. (Optional) If you want to import an existing account that was created by Ledger Live, you may need to change the HD Path in "Advanced Options". You can find your account's HD Path in Ledger Live by going to “Accounts” → “NEAR” → “Edit account” → “Advanced” (See attached images).

   \
   **You can read about HD Path** [**here**](https://thebitcoinmanual.com/articles/btc-derivation-path/)**.**

   ![Screenshot 2023-03-28 at 14.48.34.png](https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FiaZJ8PFmEgoRVm9xMeSe%2FScreenshot%25202023-03-28%2520at%252014.48.34.png?alt=media\&token=8adb8e4d-9279-4182-ba74-cbb2f503b66f)

   <div align="left"><img src="https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FNfQm50WZiF6aE88hqs6o%2FUntitled-19.png?alt=media&#x26;token=07c43a02-d9f2-4b9f-aef6-7146b588b3df" alt="Untitled"></div>

   <div align="left"><img src="https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FMLjmk0YzdtzQ9zvCoS7W%2FUntitled-20.png?alt=media&#x26;token=adb32efd-e627-4e15-bff0-a16b763e8b31" alt="Untitled"></div>
7. Tap on “Continue” and confirm the public key on your Ledger device.

![Untitled](https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FIuzzVvLZDyBn2u88Z23U%2FUntitled-25.png?alt=media\&token=21c6eb9b-cf10-413a-9a77-edd90ae9a975)

8. Tap on “Finish”. If you have multiple accounts, you need to choose one.

![Untitled](https://1444018571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdXZ16pgLU14jLP6Urj%2Fuploads%2FbLhntkPfCztnmX0H6mkt%2FUntitled-26.png?alt=media\&token=159c6d9a-8bbe-4fc8-bfe1-84973e0bb6dc)

9. Congratulations! Now you can use vaults with Ledger.
