2020-08-31 14:42:28 +02:00
.TH "LIGHTNING-SIGNPSBT" "7" "" "" "lightning-signpsbt"
.SH NAME
lightning-signpsbt - Command to sign a wallet's inputs on a provided bitcoin transaction (PSBT)\.
.SH SYNOPSIS
2020-09-07 12:46:28 +02:00
\fB signpsbt\fR \fI psbt\fR [\fI signonly\fR ]
2020-08-31 14:42:28 +02:00
.SH DESCRIPTION
2020-09-07 12:46:28 +02:00
\fB signpsbt\fR is a low-level RPC command which signs a PSBT as defined by
BIP-174\.
2020-08-31 14:42:28 +02:00
.RS
.IP \[ bu]
2020-09-07 12:46:28 +02:00
\fI psbt\fR : A string that represents the PSBT value\.
.IP \[ bu]
\fI signonly\fR : An optional array of input numbers to sign\.
2020-08-31 14:42:28 +02:00
.RE
2020-09-07 12:46:28 +02:00
By default, all known inputs are signed, and others ignored: with
\fI signonly\fR , only those inputs are signed, and an error is returned if
one of them cannot be signed\.
Note that the command will fail if there are no inputs to sign, or
if the inputs to be signed were not previously reserved\.
2020-08-31 14:42:28 +02:00
.SH EXAMPLE JSON REQUEST
.nf
.RS
{
"id": 82,
"method": "signpsbt",
"params": {
"psbt": "some_psbt"
}
}
.RE
.fi
.SH RETURN VALUE
2021-06-16 03:10:17 +02:00
On success, an object is returned, containing:
2020-08-31 14:42:28 +02:00
.RS
.IP \[ bu]
2021-06-16 03:10:17 +02:00
\fB signed_psbt\fR (string): The fully signed PSBT
2020-08-31 14:42:28 +02:00
.RE
On failure, one of the following error codes may be returned:
.RS
.IP \[ bu]
2020-09-07 12:46:28 +02:00
-32602: Error in given parameters, or there aren't wallet's inputs to sign, or we couldn't sign all of \fI signonly\fR , or inputs are not reserved\.
2020-08-31 14:42:28 +02:00
.RE
.SH EXAMPLE JSON RESPONSE
.nf
.RS
{
"psbt": "some_psbt"
}
.RE
.fi
.SH AUTHOR
Vincenzo Palazzo \fI <vincenzo.palazzo@protonmail.com\fR > wrote the initial version of this man page, but many others did the hard work of actually implementing this rpc command\.
.SH SEE ALSO
\fB lightning-fundpsbt\fR (7), \fB lightning-sendpsbt\fR (7)
.SH RESOURCES
Main web site: \fI https://github.com/ElementsProject/lightning\fR
2021-06-16 03:10:17 +02:00
\" SHA256STAMP:e6c554936e7bf7c4937db4a1e98e47486540948505bc0b8021a33b2c805cbaf6