Questions tagged [invoices]
43 questions
9
votes
1 answer
Why do lightning invoices expire?
I'm considering the development of a lightning app, and I'm trying to make it non custodial.
I was thinking on pre-generating invoices for all users every x time to make things simpler. To do that I'd need to extend the expiry date.
I tried to look…
Enrique Alcazar
- 245
- 1
- 9
9
votes
2 answers
Creating a lightning invoice without running a full node
I'm trying to build a small website that takes payments using a lightning invoice. I want to do this without running a full node (or pruned node if possible) on my server to keep costs down. I'd be happy with any of three types of…
jstaab
- 231
- 1
- 6
5
votes
1 answer
Get invoice amount from payment request - LND REST API
I'm using the REST API of my LN node to generate and pay invoices. I would like to know how to get the invoice amount/value in sats from the payment request I receive.
I found this :…
Lounès KSOURI
- 91
- 5
4
votes
1 answer
What's the maximum size of the memo in a LN payment request?
What is the maximum size of text held in the memo portion of a lightning network payment request?
arshbot
- 1,710
- 14
- 35
4
votes
2 answers
Are there any risks of publicizing a Lightning network invoice?
What are the perils of publicizing a LN invoice either before or after its payment?
From what I understand, after its payment the second payment of the invoice cannot be done. Other than the fact that the invoice was already paid, what could the…
Sev
- 118
- 10
4
votes
1 answer
Is there anyway to find a lighting payment request preimage after it is paid if you aren’t the sending or receiving node?
From what I understand, the preimage is publicly revealed when the lightning payment request is paid as a part of the transaction. Is there any way to find that transaction and therefore the preimage fro the details included in the decoded payment…
cool171
- 41
- 1
3
votes
1 answer
Is signature/private-key required to accept payment over Lightning Network?
To (1) create an invoice and (2) accept payment in LN, the node has to be online. But does the node need to sign the creating invoice or the accepting payment?
We don't have to have private key online to receive Bitcoin in on-chain transation.…
ogw_yuya
- 625
- 4
- 13
3
votes
1 answer
How do route hints affect pathfinding?
I understand that route hints can be provided when generating an invoice, but how exactly do wallets use this information to assist in pathfinding? I imagine this can vary slightly between implementations since there doesn't seem to be any strict…
oz21m
- 107
- 4
3
votes
1 answer
What does `-k` stand for in `lightning-cli`?
I find it very convenient, one does not have to worry about the order of arguments, e.g.
lightning-cli -k invoice msatoshi=0.001btc label=label1 description="This is a description" expiry=45m
I would like to know the source of this acronym, what…
John Smith
- 542
- 2
- 11
3
votes
1 answer
How would PTLC's change invoices?
I am wondering how would switching from HTLCs to PTLCs change invoices? I assume there would not be a payment-hash anymore, but what would replace it. A payment-point?
Also, is there already support for this in BOLT11 invoices? or would it require a…
PyrolitePancake
- 107
- 4
3
votes
1 answer
What exactly are route hints?
In the documentation for LND's addInvoice rpc call there's a field for something called route_hints which are described as:
Route hints that can each be individually used to assist in reaching the invoice's destination.
Radar ION's wiki provides…
arshbot
- 1,710
- 14
- 35
3
votes
1 answer
What are the minimum and maximum lengths of a Lightning invoice (address)?
I've noticed Lightning invoices can be 263 characters, 247 characters, and possibly other lengths. Is there a set range, and how (generally) are these numbers derived ?
related: What are the minimum and maximum lengths of a Mainnet Bitcoin…
Derrick
- 173
- 4
2
votes
1 answer
Using BTCPay To Accept Undefined Payment Amounts
Following advice from users on this site, I have implemented a BTCPay Server and got it set up to receive payments. I am comfortable using the API.
My need is to set up receive addresses for many clients (1000+) but the clients pay indeterminate…
Martin
- 309
- 1
- 13
2
votes
1 answer
How to know that the account balance of a user needs to be updated after paying/sending an invoice?
Lets say there is a service in which users can have a few satoshis but are also able to deposite/withdraw satoshis by paying/sending a lightning invoice. Let us assume the service has some data store which tracks the account balance for the…
Rene Pickhardt
- 11,670
- 8
- 35
2
votes
1 answer
In-channel messages via Lightning network
Is it possible to send messages to a receiver address via lightning channels. For example Alice send 25000 Satoshi to Bob with the message 'thank you for the coffee'.
I'm trying to find information about this feature:…
Jeroen
- 21
- 2