# OKX Wallet

## How to get a Nostr Address with OKX wallet?

1. Create a new wallet,  or "Import and Existing Wallet".

{% hint style="info" %}
When importing a wallet, use either the seed phrase or your Nostr private key. If you use any other private key for the import, the "Nostr" option will not be available.
{% endhint %}

2. Tap on the copy button shown on the screenshot.

<div align="left"><figure><img src="/files/uqNOP05fNpTRuPXd1V4A" alt="" width="305"><figcaption></figcaption></figure></div>

3. Enter "Nostr" into the search bar.&#x20;
4. The text beginning with "npub" is your Nostr address linked to this current OKX account.

<div align="left"><figure><img src="/files/60roIx6IohsNIQdSr1P5" alt="" width="375"><figcaption></figcaption></figure></div>

{% hint style="info" %}
**Important Note:** If you create another OKX account, you will receive another Nostr Address.&#x20;
{% endhint %}

***

## How to retrieve your Nostr Private Key?

{% hint style="danger" %}
For security reasons, never reveal or give your Nostr Private Key to anyone.&#x20;
{% endhint %}

1. Tap on the 9-dot grid on the top left.

<div align="left"><figure><img src="/files/ZiJDGmqGDgCO6yd6zVE4" alt="" width="295"><figcaption></figcaption></figure></div>

2. Tap on \[Backups].

<div align="left"><figure><img src="/files/zVGMtukVskQlh5CUhLkC" alt="" width="298"><figcaption></figcaption></figure></div>

3. Tap on the account from which you want to retrieve your private key.

<div align="left"><figure><img src="/files/xrT1Vca30gDN1l0hvi4L" alt="" width="297"><figcaption></figcaption></figure></div>

4. Tap on \[Private key].

<div align="left"><figure><img src="/files/cgmtRI5OW3Er9QHQOW2E" alt="" width="294"><figcaption></figcaption></figure></div>

4. Search for "Nostr" and tap on copy to get the private key

![](/files/i9NBN83Ika6m9gDPrgLu)

***

## How to connect to Lnfi?

Tap on \[Connect Nostr] on the top right, then select \[OKX Wallet].

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

Once connected, you can view your npub address displayed.

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

***

## How to Deposit to Lnfi from OKX?

{% hint style="info" %}
Depositing assets on Lnfi works slightly differently from other blockchains.&#x20;

Since Lnfi is built on the Lightning Network, a Lightning invoice **must be** generated by the receiver to send Bitcoin, Satoshis, or Taproot Assets from the sender.
{% endhint %}

In this **deposit** scenario, your Nostr address on Lnfi functions as the receiver, while your OKX account serves as the sender.&#x20;

**To complete the deposit, you’ll need to generate a Lightning invoice using your Nostr address on Lnfi and provide it to your OKX account for payment.**

Here’s how to generate a Lightning invoice on Lnfi:

1. Go to Lnfi Asset Dashboard, tap on \[Deposit].

<figure><img src="/files/5Yx7S9zpZGE8A8GxHrnH" alt=""><figcaption></figcaption></figure>

2. Select the \[Receive Token] type and input the \[Amount] to receive, then tap on \[Create Invoice].

{% hint style="info" %}
Currently only SATS is supported. \
\
SATS is the minimum unit of BTC, 100 million SATS=1 BTC. \
It is essentially BTC, not BRC20 SATS.
{% endhint %}

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

3. Copy the Invoice ID. (starts with Inbc....)

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

4. Head over to your OKX account. Go to Funding > Withdrawal.\
   Select \[BTC]&#x20;

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

5. For On-chain withdrawal, select \[Lightning] for Network.

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

6. Paste the copied Lightning Invoice ID. If you have sufficient amount of the \[Receive Token], you can proceed to complete the deposit by tapping on \[Next].

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

7. Once completed, the \[Receive Token] will be credited to your Nostr address. The process should be nearly instantaneous, thanks to the Lightning Network's unique capability for fast transactions.

***

## How to Withdraw from Lnfi to OKX?

{% hint style="info" %}
Withdrawing assets from Lnfi works slightly differently compared to other blockchains.&#x20;

Since Lnfi is built on the Lightning Network, the receiver must provide a Lightning invoice to receive Bitcoin, Satoshis, or Taproot Assets from the sender.
{% endhint %}

In this withdrawal scenario, your OKX account functions as the receiver, while your Nostr address on Lnfi serves as the sender. To complete the withdrawal, you’ll need to generate a Lightning invoice from your OKX account and provide it to your Nostr address on Lnfi for payment.

Here’s how to generate a Lightning invoice on OKX:

1. Go to OKX > Funding > Deposit.
2. Select \[BTC] for the deposit, and select \[Lightning] for the network.

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

3. Input the \[Deposit amount] and tap on \[Create Invoice]

{% hint style="info" %}
Currently only Bitcoin is supported. \
\
Note that BTC will be display in SATS on Lnfi.\
SATS is the minimum unit of BTC, 100 million SATS=1 BTC. \
SATS is essentially BTC, not BRC20 SATS.
{% endhint %}

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

4. A Lightning Invoice will be generated. Tap on \[Copy] to copy the Invoice ID.

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

5. Head over to Lnfi > Assets > select \[Withdraw]

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

6. Paste the Invoice ID

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

7. Check the Send Amount. Once confirmed, tap on \[Withdraw]

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

8. Once completed, the \[Receive Token] will be credited to your OKX account. The process should be nearly instantaneous, thanks to the Lightning Network's unique capability for fast transactions.


---

# 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.lnfi.network/user-guides/getting-started/npub-and-wallets/okx-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.
