LN Capital Profile picture
Jun 18 11 tweets 3 min read Twitter logo Read on Twitter
Have you ever wondered how #Bitcoin moves on and off the Lightning Network?

Let’s take a look at the process & costs at a high level.

Thread: Image
Moving sats on and off the Lightning Network starts with opening a channel.

This involves creating a multi-signature wallet, which is essentially a Bitcoin address that requires two signatures to spend the funds.
When opening a channel, you commit an amount of Bitcoin to the multi-signature wallet.

This is an on-chain transaction, meaning it's recorded on the Bitcoin blockchain and requires a transaction fee.
The cost of having a transaction included in the next block varies according to supply and demand.

Sometimes you can get away with one satoshi per vbyte, so an average transaction might cost around 120 sats.

However, during periods of high demand, you may have to pay more.
Once the channel is open, you can start transacting on the Lightning Network.

These transactions are off-chain, meaning they don't need to be recorded on the Bitcoin blockchain and don't incur additional Bitcoin transaction fees.
However, while transacting on the Lightning Network, you may have to pay a fee to routing nodes for forwarding your payments.

These fees consist of a base fee and a fee rate, which are set by the nodes themselves.
The base fee is a set amount charged for each forwarded payment, irrespective of its size.

The fee rate is a proportional fee based on the value of each forwarded payment.
To move sats off the Lightning Network, you close the channel, which requires another on-chain transaction.

This incurs a transaction fee, similar to the one paid when opening the channel.

The actual fee depends on the current demand for block space.
Keep in mind, the cost of opening and closing channels can be amortized over many Lightning Network transactions.

The more transactions you make, the less the initial and final on-chain fees impact your overall cost per transaction.
TL;DR:

Moving sats on and off the Lightning Network involves opening and closing channels.

Opening a channel requires an on-chain transaction and a fee that varies with demand.

Once the channel is open, transactions are off-chain and incur fees set by routing nodes.
/end

Thanks for reading, we hope you learned something from this one.

Btw, if you run a Lightning node, make sure to check out Torq - it’s an analytics and node management tool that we’re building here @LN_Capital

Link is in our bio!

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with LN Capital

LN Capital Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @LN_Capital

Jun 11
Every Bitcoiner has heard of SHA256.

But most don’t know its history or true purpose.

In this thread, we’ll break it down as simply as possible: Image
SHA-256 was created by the National Security Agency(NSA) and published by the National Institute of Standards and Technology(NIST) in 2001

Its purpose?

Ensuring data integrity, secure password storage, and assisting in digital signatures.

All essential for secure govt comms.
Many technologies rely on SHA-256.

#Bitcoin uses it for address creation and transaction validation.

It's used in TLS and SSL for secure connections.

Even Git uses it for version control.

Its applications are broad and critical.
Read 22 tweets
May 28
BOLT 12 has been quietly evolving in the shadows.

But 99% of Bitcoiners are completely unaware of it.

Here’s what you need to know: Image
If you’ve never heard of BOLT 12, here’s a brief overview:

BOLT stands for Basis of Lightning Technology.

BOLTs are like BIPs (Bitcoin Improvement Proposal) for the Lightning Network.
BOLT 12 is distinct from BOLT 11 (the current invoicing spec on LN) in a bunch of different ways.

The main component of BOLT 12 is a new type of invoice called an “offer”.

An offer can be thought of as a meta invoice - an invoice on top of an invoice. Image
Read 19 tweets
May 9
Force closing a Lightning channel in a high fee environment can be costly.

You need to understand how force closures work and how they become expensive.

FORCE CLOSE THREAD:
1:

A force close on Lightning occurs when a channel partner unilaterally closes a channel, often due to the other partner being unreachable.

This action "frees" the funds held in the channel.
2:

To initiate a force close, the last commitment transaction held by the initiating node is published.

Commitment transactions ensure that you don't need to trust your channel partner to retrieve your channel balance.
Read 15 tweets
Apr 16
Taproot unlocked the future of Bitcoin Privacy

But most Bitcoiners have no idea why it’s so important.

A KEY AGGREGATION THREAD: Image
It’s well known that Bitcoin has a privacy problem.

Tracking UTXOs from KYC exchanges is trivial, and specialized firms like Chainalysis have cropped up for this very purpose.

As Bitcoiners, we should care A LOT about privacy.

It’s a fundamental human right, after all.
So how does Taproot solve part of this problem?
Read 19 tweets
Mar 26
Lightning Coinjoins are the future.

THREAD:
Every bitcoiner wants privacy, whether they know it or not.

Privacy is a fundamental human right, after all.

So how can we make bitcoin more private?
There are a variety of new ideas, which we’ve written about in previous threads:
Read 19 tweets
Mar 23
TORQ v19.1 is LIVE🔥

Huge upgrades in this release:

New dashboard✅
Advanced automation workflows✅
Channel data CSV download✅
Bug & performance fixes🤙🏻

Here's a quick summary: Image
Our new dashboard gives you an overview of your node at a glance.

See your total balances (off & on chain)

Open channels, create invoices, and make payments all from one spot. Image
We've also shipped some default automation workflows and actions for setting channel policy and running rebalances between channels.

The workflows are inactive by default, but consider giving them a try! Image
Read 5 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(