# Lightning Network

The Bitcoin Lightning Network is a layer-2 solution built on top of the Bitcoin blockchain that enables faster and cheaper transactions by creating off-chain payment channels between users. Basically, instead of broadcasting a Bitcoin transaction to the public, you exchange pre-signed Bitcoin transactions with your peers that can be published to the blockchain at any time by either party. As it eliminates the requirement to record every single transaction in the blockchain, the Lightning Network is a way to scale Bitcoin.&#x20;

The basic idea is simple, but understanding how it works in detail is very complex. This documentation won’t explain the Lightning Network in depth, but one essential fact deserves attention:

{% hint style="success" %}
**The Lightning Network is built on actual Bitcoin — no shady shitcoin involved!**
{% endhint %}

\
Here’s a brief overview of its pros and cons:

### Pros:

* Fast
* Cheap (for small transactions, costs scale with transaction value)
* Better Privacy (the transactions are not visible to the public, only the final channel balance is)
* Helps scaling bitcoin while preserving its decentralization

### Cons:

* Backups get way more complex
* Liquidity management is very complex
* Your node needs to be online to receive a lightning payment

{% hint style="info" %}
As a rule of thumb, the Lightning Network is ideal for small, everyday payments, while the Bitcoin base layer is better suited for larger transactions.
{% endhint %}


---

# 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.bitbanana.app/getting-started/lightning-network.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.
