-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to include the amount int lightning addresse #12
Comments
It's a hack but it's possible: You can send |
sure that is a quickfix but that still does not make clear how one should request such a payment for a fixed amount. I mean you could argue now that one could send an invoice directly for such an amount but I think one of the entire point of lnaddress is to have a standardized for custodial users to talk to each other. |
Is this still in alpha, meaning its possible to make changes at the moment ? Adding an option without the hack would be beneficial Might be worth thinking about ways of introducing new features without a breaking change. Some version in the metadata ? Anyway, great product!!! |
Does that still make sense to use an email-like format for such cases? or can it just be the LNURL directly? |
I'd agree with @bumi and say that the primary use for the human-readable internet identifier format is for the |
@LightningTipBot This isn't a hack, it's what you're supposed to do if you want to have a fixed amount. |
|
@callebtc if it should be clickable (thus it's mainly for the computer) why not a normal LNURL link? |
Lightning Address is dependent on LNURL-pay. These things are already solved within that payment protocol. Adding query parameters to a Lightning Address just brings more issues than it solves. So I concur with @andrerfneves, the place to provide these kinds of things is within LNURL-pay itself. |
I am not sure I understand the technical downsides, but it would be great to specify a lightning address with an amount like this. [email protected]?amount=milliSatoshi Eliminating keystrokes is paramount.The use case I am thinking of is putting a donation QR code for donations on a cross-country ski trail, where users with very cold stiff fingers will likely only be able to unlock the phone, open the app, scan and confirm. No typing. As well, it would be really easy for a non-technical user to generate a corresponding QR code for varying amounts like this (note: if you try to scan this with a wallet, you'll get an error. It is just encoding [email protected]?amount=1000 ) I totally understand that there may be technical issues, but I see this simplicity to specify amounts as a usability winner for Lightning Addresses. This may require a modification on the Lightning Wallet vendors on accepting this format, but I think it would be a big winner. |
@trbouma just use the full URL in the QR code: |
This use-case is already covered within LNURL-pay protocol. Really if you want to print out a QR-code, there's no need to use Lightning Address whatsoever, you can use LNURL-pay from the different server applications and services available today. Perhaps I'm missing something here, but I firmly believe we got everything covered -- Lightning Address might be new, but LNURL-pay has existed and worked for people for years already.
Yes, it will break virtually all implementations of Lightning Address.
This technical issues should not be taken lightly, it requires all implementations today to update their wallet code.
I disagree, I believe we can already do all the things you want with LNURL-pay, especially in the scenario where QR-code is the medium.
Yes, this will work, but mind you that it has to be At least until LUD-17 is widely adopted. |
Looking at the way how
[email protected]
is resolved viaLNURL
I don't get a standard way to have an invoice with which I want to send lets say1337
sats.can we have something like
[email protected]/1337sat
similarly how inscp
we use the schemadomain:/path
where in our case the equivalent of thepath
would be theamount
and I would not include another colon as that usually seperates the schema from the actual address.I understand that using various techniques the sender could on a wallet level enter the amount but if I want to request a payment I would love to by the end create a QRcode that might encode a string like
which would be redable by wallets and wallets would know that they either request an invoice for the amount via the LNURL endpoint OR use one of the other techniques like keysend to deliver the amount.
for obvious reasons it would be nice to have a recommndation / best practice to ensure interoperability.
Of course a telegrambot could have a different api like
send 1337 username
which would internally get translated to the above standardized stringThe text was updated successfully, but these errors were encountered: