mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
pyln: rpc support for listchannels by destination
This commit is contained in:
parent
fc238bc61c
commit
89c45b379a
1 changed files with 5 additions and 3 deletions
|
@ -844,13 +844,15 @@ class LightningRpc(UnixDomainSocketRpc):
|
|||
}
|
||||
return self.call("invoice", payload)
|
||||
|
||||
def listchannels(self, short_channel_id=None, source=None):
|
||||
def listchannels(self, short_channel_id=None, source=None, destination=None):
|
||||
"""
|
||||
Show all known channels, accept optional {short_channel_id} or {source}.
|
||||
Show all known channels or filter by optional
|
||||
{short_channel_id}, {source} or {destination}.
|
||||
"""
|
||||
payload = {
|
||||
"short_channel_id": short_channel_id,
|
||||
"source": source
|
||||
"source": source,
|
||||
"destination": destination
|
||||
}
|
||||
return self.call("listchannels", payload)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue