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

Feature: decode an offer and then generate an invoice_request and return it over the RPC, not onion messaging #180

Open
AndySchroder opened this issue Sep 29, 2024 · 0 comments

Comments

@AndySchroder
Copy link

I'd like to have the ability to generate an offer (coming in #170) and decode an offer (we have this with the existing decode-offer RPC) and then generate an invoice_request and return the generated invoice_request over the RPC and don't send it over onion messaging (what I'm asking for in this issue). This is in compliment to my request in #170 (comment) where I'd like to be able to receive the invoice_request through the RPC (in addition to receiving normally via onion messaging).

The goal is for the sender and receiver to be able to exchange an offer, invoice_request, and invoice over a local physical link in addition to onion messaging.

The node should wait for an invoice to be received back. If the invoice is received back over a local physical link (outside of lndk), the existing pay-invoice RPC can be used to pay the invoice. Otherwise, if the invoice is received back over onion messaging, the lndk node should automatically pay it.

Possibly some of the logic I'm asking for here is already in the get-invoice RPC?

@github-staff github-staff deleted a comment Sep 29, 2024
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

1 participant