# Deposit & Withdraw

**Deposit** \
[Deposit to Lnfi from Lightning Network](#deposit-to-lnfi-from-lightning-network)\
[Deposit to Lnfi from Blockchain Mainnets](#deposit-to-lnfi-from-blockchain-mainnets)\
\
**Withdraw**\
[Withdraw from Lnfi from Lightning Network](#withdraw-from-lnfi-from-lightning-network)\
[Withdraw from Lnfi to Blockchain Mainnets](#deposit-to-lnfi-from-blockchain-mainnets)

***

## Deposit to Lnfi

### Deposit to Lnfi from Lightning Network

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

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

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

**To complete the deposit, you must 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.

***

### Deposit to Lnfi from Blockchain Mainnets

{% embed url="<https://youtu.be/OKtiUSErSTo>" %}

Go to [mainnet.lnfi.network](https://mainnet.lnfi.network), select Deposit.

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

Select the Deposit Asset.

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

Select Deposit from Blockchain Mainnets and input the desired deposit amount.

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

Tap on Submit to proceed.

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

Ensure you select the correct Blockchain Mainnet and Deposit Asset. After verifying, tap Deposit to continue.

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

Once successful, you will be notified. You can check the transaction details by tapping on View on explorer.

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

***

## Withdraw from Lnfi

### Withdraw from Lnfi from Lightning Network

{% 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, we use OKX wallet as an example. 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.

***

### Withdraw from Lnfi to Blockchain Mainnets

{% embed url="<https://youtu.be/h17Kwqu1PX8>" %}

Go to [mainnet.lnfi.network](https://mainnet.lnfi.network), select Withdraw.

<figure><img src="/files/2dYIGG87qSgFHkxAM3yK" alt=""><figcaption></figcaption></figure>

Select the Withdraw Asset and select Blockchain Mainnets

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

Input the desired withdrawal amount, and tap on Submit to proceed.

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

Ensure you select the correct Blockchain Mainnet and Withdraw Asset. After verifying, tap Submit to continue.

<figure><img src="/files/815ecnaLmKCLEFAP0zA6" alt=""><figcaption></figcaption></figure>

Once successful, you will be notified. You can check the transaction details on Lnfi explorer.

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


---

# 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/receive-and-send-assets.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.
