7 votes
Accepted

How do 'Sphinx' invoice-less payments on the Lightning Network work?

Usually a merchant will generate a (psuedo)random 32-byte value and hash it. This becomes the payment_hash which identifies the payment in the network and is transferred to the purchaser in an invoice....
user avatar
  • 3,190
6 votes
Accepted

Make payments Lightning without Invoice?

With the current specification it is not possible to make a spontaneous payment to somebody on the network. However, this will likely change very soon, as it is one of the features on the roadmap and ...
user avatar
  • 8,694
6 votes
Accepted

Why is last channel's expiry different in Lightning Network Routes?

After some searching through the BOLT documents and talking with the lnd slack community, I found an answer: B->C. If B were to send 4,999,999 millisatoshi directly to C, it would neither charge ...
user avatar
  • 537
6 votes

What are the downsides of Hodl Invoices?

I didn't attend the conference but here is my take on Hodl invoices. In a normal Lightning payment, the sender pays an invoice which contains the payment hash and the payee releases the pre-image to ...
user avatar
  • 6,898
6 votes

How exactly do I use Lightning Network? Does it even actually exist?

If you recommend "Mastering the Lightning Network" in chapter 2 you find a table of possible Lightning Network implementations: Application Device Lightning Node Bitcoin Node Keystore ...
user avatar
5 votes

Running lightning in prune mode

Update(2021): Since version 0.13 pruned nodes are officially supported although they cause performance penalty and higher network usage. It is possible to run Lightning (both LND and c-lightning) with ...
user avatar
5 votes
Accepted

How to obtain the Channel_ID from the Short_Channel_ID?

The short_channel_id points to the funding transaction of the payment channel by the format blockheightxtransaction_indexxoutput where the x is used to seperate the 3 values and the three values are ...
user avatar
5 votes
Accepted

invoice amount is 1200000 but I paid 1201035. What is 1035?

As you mentioned your question is almost a duplicate of Why does my c-lightning node pay more than the invoice plus routing fees? But you asked if there is a way of knowing how much you will overpay ...
user avatar
5 votes
Accepted

How to recover funds from a force-closed Lnd lightning channel?

In c-lightning the per commitment point is derived from the hsm_secret using per_commit_point from: The node id / public key (can be found with listfunds, until the channel is purged some time after ...
user avatar
5 votes
Accepted

What is the difference between wallet balance, local balance and remote balance in the Lightning Network?

Walletbalance is showing your on-chain balance of a lightning wallet. Regarding channel balances (locked on layer 2 and not available onchain): local balance is your local balance that you can spend ...
user avatar
  • 1,564
4 votes

When opening a LN channel using LND, what does 'push-amt' do?

The money now belongs to the counterparty in the channel you opened. In every one of your channels, whether you opened them or they were opened to you, "local balance" refers to your spendable/...
user avatar
4 votes
Accepted

Share balance between lnd and bitcoind

As far as I know, this is not possible. lnd and bitcoind are two separate daemons, that interact with the bitcoin network in different ways. The only way I could think of doing this would be to ...
user avatar
  • 17.2k
4 votes
Accepted

Can you run a bitcoin lightning node on a raspberry pi zero?

Will a bitcoin lightning node run on a raspberry pi zero? This probably depends on what you are doing on the node, how much traffic it gets, etc. I have one running on a Raspberry Pi 3B with ...
user avatar
  • 7,040
4 votes
Accepted

Lightning Network `channel_update` message Flag clarification

The flags field (2 bytes) has been split into two different (1 byte) fields, the message_flags (most significant bits) and the channel_flags field (least significant bits). Hence the flags value ...
user avatar
  • 8,694
4 votes

How is node capacity determined on 1ML.com?

Since 1ml is closed source I obviously cannot be 100% sure how it calculates the capacity of your node. But from my experience I can say that it does it in the same way as any other lightning node do ...
user avatar
4 votes
Accepted

How to send payment through a predefined route?

TL;DR. You need to specify --final_cltv_delta=144 option in the lncli queryroutes command. Longer answer... When payment is routed through Lightning Network, each intermediate node has a potential ...
user avatar
4 votes

How do hodl invoices work?

Generally when paying an invoice a chain of htlcs from the sender via some path on the network to the recipient is set up. The htlcs lock in by exchanging signatures on every local channel. Now there ...
user avatar
4 votes
Accepted

What is the unit of time_lock_delta in LND?

The time_lock_delta is the minimum difference in the number of blocks between the CLTV of an incoming HTLC and the forwarded HTLC. Full details are described in BOLT2 # CLTV expiry delta.
user avatar
  • 3,190
4 votes
Accepted

Why is my lighting node not routing any transaction?

Obviously for questions like this I can't give a 100% certain answer as I would have to look at your nodes logfiles and configuration / state. However I can make some (hopefully) educated guesses and ...
user avatar
4 votes
Accepted

Lightning Network : Pay a Bolt11 Invoice in multiple Payments

Currently, no. The receiver will reject an attempt for less than the requested amount and fail with incorrect_or_unknown_payment_details. Each invoice has a payment_hash which a payment corresponds ...
user avatar
  • 3,190
4 votes
Accepted

How do I find the nodeid of the node issuing a lightning network invoice?

Lightning invoices are signed by the node issuing the invoice in order to verify the signature we need to know the node id. Thus it is included in the invoice. Lightning nodes provide an API to decode ...
user avatar
4 votes
Accepted

Can I send/receive payments but prevent forwarding payments in Lightning Network?

Yes, there are basically two ways to avoid becoming a forwarding node: Do not announce your channels, and keep them private Reject any incoming HTLC that is not destined for you The first is ...
user avatar
  • 8,694
4 votes
Accepted

Is it possible to generate an invoice for my lnd without having a connection to my lnd?

Yes this is theoretically possible as described in this video https://youtu.be/bihYeAeNi0g The idea is to have a deterministic way of generating preimages and entangling the lightning node with the ...
user avatar
4 votes
Accepted

Lost funds on my lightning node?

Yes. Unfortunately this is true. Using push-amt means that you send over an amount to the other side wich they own. While it takes place offhand it is final in a similar way as sending Bitcoin to an ...
user avatar
4 votes

Get invoice amount from payment request - LND REST API

I just found the answer : https://api.lightning.community/rest/index.html?javascript#v1-payreq Use the endpoint v1/payreq to decode the payment request. Exemple : var fs = require('fs'); var ...
user avatar
4 votes
Accepted

Transaction size limit across a single path in a Lightning Network and fee earned

The maximum size for HTLC's are currently defined by max_htlc_value_in_flight_msat and is roughly 42mBTC. The max_concurrent_htlc that you mention seems to be the max_accepted_htlcs and states how ...
user avatar
4 votes

What is the difference between wallet balance, local balance and remote balance in the Lightning Network?

In each of your channels, you have a local balance. This is the balance that is yours in that channel. The counterparty of the channel has the remote balance. All lightning transactions change these ...
user avatar
  • 60.4k
3 votes

How to create bidirectional channels using LND?

It is bidirectional by default. In fact LND does not even allow for single-directional channels. What you're experiencing though, is the drawback of having created a single-funded channel. That means,...
user avatar
3 votes
Accepted

Can the lightning network be subject to DoS attacks due to message flooding?

The protocol is purposefully built in such a way that DoS attacks are mitigated and reduced in impact. Each channel_announcement contains a reference to the funding transaction, and each node verifies ...
user avatar
  • 8,694
3 votes
Accepted

How do I get credentials on the bitcoin network?

I have to fill in these values in the config: bitcoind.rpcuser=bitcoind_rpc_user_string bitcoind.rpcpass=bitcoind_rpc_password_string These are user defined, and used to authenticate and ...
user avatar
  • 17.2k

Only top scored, non community-wiki answers of a minimum length are eligible