diff --git a/contrib/pyln-client/pyln/client/lightning.py b/contrib/pyln-client/pyln/client/lightning.py index 19af7e85b..9e3398216 100644 --- a/contrib/pyln-client/pyln/client/lightning.py +++ b/contrib/pyln-client/pyln/client/lightning.py @@ -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): """