From 67d20ae842bedcbf7b139228742525916b8168df Mon Sep 17 00:00:00 2001 From: darosior Date: Sat, 18 May 2019 20:59:55 +0200 Subject: [PATCH] Add 'paystatus' method --- contrib/pylightning/lightning/lightning.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/pylightning/lightning/lightning.py b/contrib/pylightning/lightning/lightning.py index d4c517713..8152d1b22 100644 --- a/contrib/pylightning/lightning/lightning.py +++ b/contrib/pylightning/lightning/lightning.py @@ -645,6 +645,13 @@ class LightningRpc(UnixDomainSocketRpc): } return self.call("pay", payload) + def paystatus(self, bolt11=None): + """Detail status of attempts to pay {bolt11} or any""" + payload = { + "bolt11": bolt11 + } + return self.call("paystatus", payload) + def ping(self, peer_id, length=128, pongbytes=128): """ Send {peer_id} a ping of length {len} asking for {pongbytes}"