C-Otto / lnd-manageJ

MIT License
52 stars 11 forks source link

#PickhardtPayments: add rebalance mode #33

Closed C-Otto closed 2 years ago

C-Otto commented 2 years ago

Related to #32.

Is your feature request related to a problem? Please describe. Currently it is not possible to pay invoices created by the own node. Add a feature that enables this, possibly also taking fee computations (see rebalance-lnd) into account. For this, the channel/peer of the last hop needs to be specified.

Describe the solution you'd like A new REST endpoint that accepts a target channel/peer, a target amount, and fee/reliability parameters. The implementation then automatically creates an invoice and sends funds back to the own node via the specified channel/peer, if the local balance does not exceed the given value.