Open Yiidiir opened 2 years ago
Route hints aren't available via the lncli sendpayment
call atm. However if you're doing a keysend and want to also package the route hints, you can use AMP invoices: lncli addinvoice --amp
.
Route hints aren't available via the
lncli sendpayment
call atm. However if you're doing a keysend and want to also package the route hints, you can use AMP invoices:lncli addinvoice --amp
.
Oh okay, will adding the argument to cmd_payments fix it? If it's the case I can open a PR for that.
I'm surprised keysend can't work at all with private channels because of this. AMP won't help my case.
Hey @Roasbeef and @Yiidiir, Is this issue valid yet? Please let me know if there's anything I should be aware of before I start working on it. 🙏
Background
The issue has arisen when trying to do a keysend payment from an LND node to @hsjoberg 's @blixtwallet also running LND node. Keysend works when sending payments from Blixt LND to a Desktop LND but not the other way around.
It turns out it was because of the private nature of Blixt channels, sending from Blixt Wallet to Another Blixt Wallet is possible because the QR code contains route hints in a form of JSON that are passed to lnd within Blixt Wallet using
routerrpc.SendPaymentRequest
spec.For some reason I can't get the
--route_hints
argument to work inlncli
so I can do a keysend payment to Blixt from a desktop node, actually, the only place that argument is mentioned to exist within lndcli is the API docI've done some digging in commits history and
--route_hints
should be available both inlncli sendpayment
andlncli queryroutes
but All I get isTried other combinations like
--routehints
but same resultYour environment
lnd 0.14.3-beta
Ubuntu / Win10 pre-built binaries
btcd
,bitcoind
, or other backendneutrino
Steps to reproduce
run
lncli sendpayment --keysend
orlncli queryroutes
with--route_hints
argument.Expected behavior
Actual behaviour
related #3971