Questions tagged [invoices]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

Lnd invoice lookup

I am trying to get single invoice with GET /v2/invoices/lookup endpoint on LND REST API by its id as documented here: https://api.lightning.community/?javascript#v2-invoices-lookup. But whatever I do ...
1 vote
1 answer
42 views

Is there an absolute limit the payment request expiry?

Is there an absolute limit the payment request expiry? I can't find this in the BOLTs, but maybe this is up to the implementations?
1 vote
1 answer
52 views

How can i get the payee public key from the payment request

I'm trying to get the payees public key (destination node) from the payment request. You can see an example here. In the source code for (https://lightningdecoder.com/) it seems like they get it from ...
1 vote
0 answers
42 views

How to generate a lightning invoice of any type offline

Is it possible to generate a lightning network invoice without the encumbrance of a full lightning node (lightning node defined as: fully synced channel graph, knowledge of channel outpoints, and ...
0 votes
1 answer
28 views

Lightning protocol modification for app

I'm currently building a Lightning platform for online sellers. I have found that timing can be very problematic: For example, two people want to buy the last item in stock or a unique item like a ...
  • 13
1 vote
1 answer
40 views

Lnurl: Why are there min and max fields instead of an amount field?

When creating an lnurl, why do you need to specify a range of amounts to payout using the fields min and max? I would think it would make sense for lnurls to just take one specified amount like amount:...
2 votes
2 answers
75 views

Can I create an invoice for a Lightning address I don't own?

I am building a web service where User A will signup and enter a Lightning address attached to the profile. Then, User B would want to send some satoshi to the Lightning address of User A as a kind of ...
2 votes
1 answer
68 views

Invoicing with BTC

I am trying to learn if there is a way in BTC to raise an invoice from a friend like in Paypal just by using a public address on the BTC wallet. I have checked the API is all leading exchanges, and ...
  • 121
2 votes
1 answer
146 views

Is it possible to cancel a lightning invoice?

Could the user who generates the invoice not just delete their secret so the payment would not be successful? Maybe there is a more eloquent way that wouldn't result in users funds being stuck for a ...
  • 31
0 votes
0 answers
35 views

How to send a Lightning invoice directly to a peer?

I wonder if there the popular Lightning clients offer a command to not only create an invoice, but also directly send it to a peer (or any node). I see in BOLT04 and BOLT11 that the invoice is ...
  • 43
0 votes
0 answers
36 views

How does the registration of the 'bitcoin' URL scheme to an online wallet like Coinbase work?

Some online wallets allow the user to register the online wallet as the default handler of the bitcoin:address URL scheme, where clicking on a bitcoin:address link will open a checkout flow, allowing ...
  • 2,012
1 vote
1 answer
31 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
1 answer
218 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
1 answer
74 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. ...
  • 105
1 vote
1 answer
38 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
1 answer
131 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=...
2 votes
1 answer
130 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
1 answer
69 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
2 answers
631 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 ...
  • 161
2 votes
1 answer
382 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 ...
  • 1,389
3 votes
1 answer
277 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 ...
  • 173
1 vote
1 answer
100 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 ...
  • 13
1 vote
1 answer
211 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
0 answers
65 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 ...
  • 135
1 vote
0 answers
121 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) ...
  • 11
2 votes
1 answer
267 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 ...
  • 309
1 vote
1 answer
159 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
1 answer
557 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
1 answer
193 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 ...
  • 595
9 votes
1 answer
1k 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
1 answer
391 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,389
1 vote
1 answer
39 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
1 answer
111 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
2 answers
708 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 ...
  • 118
2 votes
1 answer
657 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 ...
  • 21