lnd icon indicating copy to clipboard operation
lnd copied to clipboard

send coins to invoice on same node (self)

Open aggroLINUS opened this issue 8 years ago • 1 comments

Background

imagine running a custodial wallet service on 1 lnd. one user wants to send a payment to another user on the same service. essentially it is a LN payment within the node.

at the moment a payent to myself fails this way:

{ "payment_error": "unable to find a path to destination", "payment_preimage": "", "payment_route": null }

thanks for your hard work guys!! i also try my best to bring your work to the people!!

aggroLINUS avatar Oct 08 '18 19:10 aggroLINUS

This isn't supported via the vanilla interface atm. You can use sendtoroute to achieve this however. It seems that in your use case, you can just store balances outside of lnd, and simply update the external database for payments within the "same service".

Roasbeef avatar Oct 09 '18 02:10 Roasbeef