mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
Add 'paystatus' method
This commit is contained in:
parent
a7ef7b47c8
commit
67d20ae842
1 changed files with 7 additions and 0 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Reference in a new issue