Questions tagged [invoices]

The tag has no usage guidance.

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

Is there a way to pay multiple lightning addresses from a single invoice

Let's say I'm an online platform that wants to enable lightning payments between members, but want to also take a small sats fee per transaction to cover platform costs. Very much like Uber or AirBnB ...
uxcxdx's user avatar
  • 111
3 votes
1 answer
76 views

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 ...
oz21m's user avatar
  • 107
0 votes
1 answer
41 views

How to go about performing invoice generation / payment processing with lightning network?

I am interested in implementing a micro-transaction "paywall" that will allow anonymous users access to a web application that I am building. Each unique visit to the home page of the ...
patrick's user avatar
  • 223
0 votes
0 answers
56 views

Derive Secp256k1 curve public key starting off from known 32 bytes string

Starting off from a sha256 hash of a threshold pubkey, how can I generate a valid secp256k1 public key? The challenge is that the 32 bytes of the hash does not always fall within secp256k1 range, so I ...
okjodom's user avatar
0 votes
1 answer
43 views

What mobile lightning wallets show the user the preimage?

It seems like most mobile lightning wallets don't make the preimage accessible to the user after a lightning invoice is paid, other than Muun. Does anyone know of any others that do?
cool171's user avatar
  • 41
4 votes
1 answer
90 views

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 ...
cool171's user avatar
  • 41
1 vote
0 answers
72 views

Using HODL invoices as escrow services, nostr integration?

With the growth of the nostr network, it's easy to imagine a whole new family of apps being created that could work in a decentralized manner (Marketplaces, AirBnB, Uber). But for these apps which ...
Patrick Geyer's user avatar
1 vote
1 answer
150 views

How to send lightning payment request to lnurl from Android app with extra comment data?

I'm looking for a way to include extra description (comment) info in a lightning payment request i.e. LUD-12. Either with anchor link: <a href="lightning:[email protected]" comment=&...
bitanon's user avatar
  • 31
1 vote
0 answers
42 views

How could I encourage my Customers to pay me in Bitcoin?

I run a small pharmaceutical business and send PDF Invoices to various accounts payable departments of medium to large businesses monthly. Could I generate a QR code for an on-chain Bitcoin payment ...
MisesGrandson's user avatar
0 votes
0 answers
76 views

LND (lightning) wallet doesn't generate the invoice

In my LND (lightning) wallet invoice commands are not working and invoices are not generated but other commands and functions are working such as wallet balance, listpayments, listchannels, ...
Avz Vicky's user avatar
1 vote
0 answers
208 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 ...
Jan Husák's user avatar
1 vote
1 answer
131 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?
Ole Henrik Skogstrøm's user avatar
1 vote
1 answer
199 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 ...
Ole Henrik Skogstrøm's user avatar
1 vote
0 answers
109 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 ...
Sanjay V's user avatar
0 votes
1 answer
35 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 ...
Olympus's user avatar
  • 13
1 vote
1 answer
90 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:...
Dashiell Rose Bark-Huss's user avatar
2 votes
1 answer
246 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 ...
Sergei Basharov's user avatar
2 votes
1 answer
131 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 ...
ddesai's user avatar
  • 121
2 votes
1 answer
333 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 ...
bosch-0's user avatar
  • 41
1 vote
1 answer
39 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 ...
Tenders McChiken's user avatar
0 votes
1 answer
694 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 ...
NewbieXXL's user avatar
0 votes
1 answer
138 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. ...
Tim's user avatar
  • 105
1 vote
1 answer
57 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("...
John Smith's user avatar
3 votes
1 answer
160 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=...
John Smith's user avatar
2 votes
1 answer
227 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 ...
PyrolitePancake's user avatar
3 votes
1 answer
104 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 ...
PyrolitePancake's user avatar
9 votes
2 answers
1k 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 ...
jstaab's user avatar
  • 231
3 votes
1 answer
822 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 ...
arshbot's user avatar
  • 1,710
3 votes
1 answer
531 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 ...
Derrick's user avatar
  • 173
1 vote
1 answer
126 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 ...
Olympus's user avatar
  • 13
1 vote
1 answer
320 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 ...
morpheus32's user avatar
0 votes
0 answers
71 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 ...
karns's user avatar
  • 135
1 vote
0 answers
160 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) ...
Mohsen's user avatar
  • 11
2 votes
1 answer
378 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 ...
Martin's user avatar
  • 309
1 vote
1 answer
246 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 ...
Dave Scotese's user avatar
5 votes
1 answer
695 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....
Lounès KSOURI's user avatar
3 votes
1 answer
224 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 ...
ogw_yuya's user avatar
  • 635
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'...
Enrique Alcazar's user avatar
4 votes
1 answer
567 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?
arshbot's user avatar
  • 1,710
1 vote
1 answer
47 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'...
Dalit Sairio's user avatar
2 votes
1 answer
125 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 ...
Rene Pickhardt's user avatar
4 votes
2 answers
824 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 ...
Sev's user avatar
  • 118
2 votes
1 answer
708 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 ...
Jeroen's user avatar
  • 21