Questions tagged [invoices]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
16 views

Is it possible to generate a pool of lightning transaction invoices in advance?

When dealing with normal on-chain transactions, we can generate a large number of bitcoin addresses that can then be stored separately and used to receive payments at a later date. I am aware that a ...
0
votes
1answer
37 views

How to generate an invoice with flexible amounts for Lightning Network

I try to create a lightning invoice for donations. I want my donors to be able to determine the amount themselves. For my question I have looked for an answere in the internet. Unfortunately, my ...
0
votes
1answer
30 views

Create lightning invoice as payer

I'm interested in using lightning invoices for storing some basic metadata about a transaction on the chain. I'm also open to learn of a different approach if invoices aren't a good choice for my app. ...
1
vote
1answer
22 views

What is the maximum byte size or limit of characters in label in lightning-cli invoice? Are UTF-8 characters accepted?

I'm writing a script in C that is mean to make the usage of my c-lightning wallet more convenient. And so I have to specify a limit of characters (l is a variable that stands for label): puts("...
3
votes
1answer
104 views

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=...
0
votes
0answers
27 views

How can AMP invoices be static in Lightning?

I have heard that there are static AMP invoices that can be reused multiple times (at least in LND). But previously I understood that you should never reuse the same paymenthash, because you could ...
3
votes
1answer
35 views

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 ...
5
votes
2answers
303 views

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 ...
2
votes
1answer
126 views

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 ...
2
votes
1answer
128 views

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 ...
1
vote
1answer
62 views

Pay invoice to offline lightning node

I wonder if there is a way to force a refund. Let's say A makes a payment to B. Later, B finds that he has to refund A, but A is offline. Can B reverse this payment while A is offline? Could it be a ...
1
vote
1answer
149 views

What are the best practices to close and reopen channels in order to increase capacity

I am new in the lightning so I opened a small channel with 50k sats to get started. After some research and try-and-error I would like to increase the capacity of this channel. I know that this is not ...
0
votes
0answers
47 views

Accepting Bitcoin Settlement for Business Invoices, Important Business Considerations

Our company is intending on accepting Bitcoin as a settlement option. Currently, we create invoices based on services we perform with 30 day payment terms and want to offer the option of settling the ...
0
votes
0answers
95 views

Settling the invoice/payment in lightning while the other party is unresponsive

Given that Alice wants to pay Bob in the lightning network, Bob first creates an invoice (using the python api) for A as follows: request = invoicesrpc.AddHoldInvoiceRequest(hash=r_hash, value=30000) ...
2
votes
1answer
235 views

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 ...
1
vote
1answer
126 views

What is "signature recovery"?

Bolt #11 defines a "tagged field," n, which identifies the payee by a public key, but it isn't required. It also requires a signature which can be verified only if the public key is known. When ...
5
votes
1answer
389 views

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 : https://api....
3
votes
1answer
165 views

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 ...
7
votes
1answer
786 views

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'...
4
votes
1answer
260 views

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?
1
vote
1answer
36 views

Purpose of the LN transaction description

According to Bolt 11, an invoice may contain a short description. However, what I fail to understand is who is sending this information to whom. Since the invoice is usually generated by the payee, I'...
2
votes
1answer
98 views

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 ...
4
votes
2answers
575 views

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 ...
2
votes
1answer
614 views

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 ...