mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
rpc: new signpsbt + sendpsbt rpcs
Changelog-Added: JSON-RPC: new call `signpsbt` which will add the wallet's signatures to a provided psbt Changelog-Added: JSON-RPC: new call `sendpsbt` which will finalize and send a signed PSBT
This commit is contained in:
committed by
Christian Decker
parent
fd8a716695
commit
9830c94778
@@ -1129,6 +1129,24 @@ class LightningRpc(UnixDomainSocketRpc):
|
||||
}
|
||||
return self.call("unreserveinputs", payload)
|
||||
|
||||
def signpsbt(self, psbt):
|
||||
"""
|
||||
Add internal wallet's signatures to PSBT
|
||||
"""
|
||||
payload = {
|
||||
"psbt": psbt,
|
||||
}
|
||||
return self.call("signpsbt", payload)
|
||||
|
||||
def sendpsbt(self, psbt):
|
||||
"""
|
||||
Finalize extract and broadcast a PSBT
|
||||
"""
|
||||
payload = {
|
||||
"psbt": psbt,
|
||||
}
|
||||
return self.call("sendpsbt", payload)
|
||||
|
||||
def signmessage(self, message):
|
||||
"""
|
||||
Sign a message with this node's secret key.
|
||||
|
||||
Reference in New Issue
Block a user