Skip to content

Commit

Permalink
Added spent option to listfunds in pyln-client
Browse files Browse the repository at this point in the history
  • Loading branch information
hosiawak authored and cdecker committed Dec 22, 2020
1 parent 272d936 commit 8bc3690
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions contrib/pyln-client/pyln/client/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,11 +851,16 @@ def listforwards(self):
"""
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):
"""
Expand Down

0 comments on commit 8bc3690

Please sign in to comment.