Added spent option to listfunds in pyln-client

This commit is contained in:
Karol Hosiawa 2020-12-22 10:33:42 +01:00 committed by Christian Decker
parent a2c208e121
commit 4a3dec660f
1 changed files with 8 additions and 3 deletions

View File

@ -851,11 +851,16 @@ class LightningRpc(UnixDomainSocketRpc):
"""
return self.call("listforwards")
def listfunds(self):
def listfunds(self, spent=False):
"""
Show funds available for opening channels.
Show funds available for opening channels
or both unspent and spent funds if {spent} is True.
"""
return self.call("listfunds")
payload = {
"spent": spent
}
return self.call("listfunds", payload)
def listtransactions(self):
"""