Closed gertjaap closed 6 years ago
@metalicjames Would it make sense to update this to include your multihop command once it's merged? So that it would do a multi-hop payment if possible, and if not fall back to the on-chain payment?
Will resubmit this PR once multihop is in.
This is a first implementation of the pay command described in #234
You simply say
pay [ln address] [coin type] [amount] [data]
The node will look for an existing channel to the given address and enough capacity. If found, it will execute a regular
push
. If this isn't found, we will ask the given node for an on-chain address and then send funds from our wallet to that on-chain address via a regular on-chain transaction.