Skip to content
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

Static payment method data in LUD-6 #157

Open
daveajones opened this issue May 12, 2022 · 2 comments
Open

Static payment method data in LUD-6 #157

daveajones opened this issue May 12, 2022 · 2 comments

Comments

@daveajones
Copy link

It seems like LUD-16 isn't complete without also being able to specify static invoice/invoiceless information in the LUD-6 object. It could be added easily, like so:

{
  "callback": "https://api.example.com/v1/lnurlp/dave/pay",
  "minSendable": 1000,
  "maxSendable": 1000000000000,
  "tag": "payRequest",
  "metadata": "[[\"text/plain\",\"Pay Dave Jones (@dave).\"]]",
  "staticPayment": {
    "method": "keysend",
    "address": "032f4ffbbafffbe51726ad3c164a3d0d37ec27bc67b29a159b0f49ae8ac21b8508",
    "customKey": "112111100",
    "customValue": "wal_ZmqFg135h71oek"
  }
}

This would allow for generating invoices, as normal, but also gives the staticPayment info in case the receiver also allows for static invoicing (keysend/amp/bolt12). The method would dictate the type of static info the object is describing. This is modeled off of the Value4Value spec in the podcast namespace:

https://github.com/Podcastindex-org/podcast-namespace/blob/main/value/value.md#lightning

...which has worked extremely well. Being able to use Lightning Addresses in the v4v payment blocks would need something like I'm describing here.

@daveajones
Copy link
Author

There are other proposals in the Lnurl telegram group that are being discussed, so this may not be needed. I'll leave it here for now and close later once decisions are made.

@ninsupreme
Copy link

This is the first that I am seeing of anybody working with LNurl in the same ways that ive been trying for the past 2 months!!!! Nobody ever really knows what im talking about when I bring up topics like these because I always run into the same static problem here, where else can I get in contact to talk about these concepts or read more about these?!?!?!? Im not the MOST versed with reading these back end views.
I had to make an entire account for this site when I found this project has been open for longer than ive been working on it, exciting because it means were definitely on the right path because we're all approaching it from different angles and we're around the same area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants