mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
Added spent option to listfunds in pyln-client
This commit is contained in:
parent
a2c208e121
commit
4a3dec660f
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user