Commit Graph

12 Commits

Author SHA1 Message Date
Abdullahi Yunus
35c6cecd22 commands: use parseChanIDs method
In this commit we use the `parseChanIDs` method introduced in a
previous commit to process the `outgoing_chan_id` flag for
`queryroutes`.
2025-07-23 15:24:03 +01:00
Abdullahi Yunus
40fe9e9ce3 commands: use StringSlice flag for send payment
In this commit we replace the Int64Slice flag with StringSlice for
chan id flag, in sendpayment request.
2025-07-23 15:21:55 +01:00
Abdullahi Yunus
4751016839 commands: use StringSliceFlag for chan ids
In this commit we use stringSlice flag for incoming and outgoing
channel ids args, for forwarding history command. The Int64Slice
range does not cover all possible scids in the custom alias range.
2025-07-23 15:08:58 +01:00
Abdullahi Yunus
3c40233f83 commands: specify multiple outchan ids
In this commit we make it possible to specify outgoing_chan_id
multiple times in the same queryroutes command.
2025-07-15 18:42:43 +01:00
Shivam Chawla
bfe1edf4ec lnrpc: add filters to forwardhistoryrequest
This commit adds incoming and outgoing channel ids filter to forwarding history request to filter events received/forwarded from/to a particular channel
2025-06-11 09:10:13 +05:30
Alex Pilon
baf2e445f4 lncli: Add --route_hints flag support
Adds --route_hints flag to sendpayment.
Hints should be JSON encoded (see usage for example).

Adds --route_hints flag to queryroutes.
Errors if blinded paths are set.
2025-05-24 20:01:45 -04:00
ziggie
729c84bee3 lncli: return more clear error msg for deletepayments 2025-04-18 15:30:39 +02:00
ziggie
3562767b23 lncli: only add additional info to specific cmds.
We only append the chan_id and the human readable scid
for the commands `listchannels` and `closedchannels`. This
ensures that other commands like `buildroute` are not affected
by this change so their output can be piped into other cmds.

For some cmds it is not very practical to replace the json output
because we might pipe it into other commands. For example when
creating the route we want to pipe the result of buildroute into
sendtoRoute.
2025-02-12 23:29:56 +01:00
Slyghtning
85d89a5b41 cmd: fix default timeout for estimateroutefee 2024-11-29 10:20:03 +01:00
Oliver Gugger
870e845a1e cmd/lncli: print new status responses to CLI 2024-11-06 15:30:27 +01:00
Oliver Gugger
c5973aa136 cmd/commands: export StripPrefix 2024-08-23 10:58:13 +02:00
Oliver Gugger
22a3988222 cmd/lncli: move commands and export
We want to export some of our CLI code to re-use in other projects. But
in Golang you cannot import code from a `main` package.
So we need to move the actual code into its own package and only have
the `func main()` in the `main` package.
2024-08-23 10:57:59 +02:00