Questions tagged [invoices]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
2answers
68 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
30 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
57 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
30 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
92 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
26 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
68 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
211 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
111 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 ...
3
votes
1answer
302 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
149 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
613 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'...
2
votes
1answer
201 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
34 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
97 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
482 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
575 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 ...