2020-06-10 02:20:18 +02:00
|
|
|
.TH "LIGHTNING-UNRESERVEINPUTS" "7" "" "" "lightning-unreserveinputs"
|
|
|
|
.SH NAME
|
|
|
|
lightning-unreserveinputs - Release reserved UTXOs
|
|
|
|
.SH SYNOPSIS
|
|
|
|
|
2021-05-26 03:19:37 +02:00
|
|
|
\fBunreserveinputs\fR \fIpsbt\fR [\fIreserve\fR]
|
2020-06-10 02:20:18 +02:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
2020-07-15 07:31:49 +02:00
|
|
|
The \fBunreserveinputs\fR RPC command releases (or reduces reservation)
|
|
|
|
on UTXOs which were previously marked as reserved, generally by
|
|
|
|
\fBlightning-reserveinputs\fR(7)\.
|
2020-06-10 02:20:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
The inputs to unreserve are the inputs specified in the passed-in \fIpsbt\fR\.
|
|
|
|
|
2021-05-26 03:19:37 +02:00
|
|
|
|
|
|
|
If \fIreserve\fR is specified, it is the number of blocks to decrease
|
|
|
|
reservation by; default is 72\.
|
|
|
|
|
2020-06-10 02:20:18 +02:00
|
|
|
.SH RETURN VALUE
|
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
On success, an object containing \fBreservations\fR is returned\. It is an array of objects, where each object contains:
|
2020-06-10 02:20:18 +02:00
|
|
|
|
2020-07-15 07:31:49 +02:00
|
|
|
.RS
|
|
|
|
.IP \[bu]
|
2021-06-16 03:10:17 +02:00
|
|
|
\fBtxid\fR (txid): the transaction id
|
2020-07-15 07:31:49 +02:00
|
|
|
.IP \[bu]
|
2021-06-16 03:10:17 +02:00
|
|
|
\fBvout\fR (u32): the output number which was reserved
|
2020-07-15 07:31:49 +02:00
|
|
|
.IP \[bu]
|
2021-06-16 03:10:17 +02:00
|
|
|
\fBwas_reserved\fR (boolean): whether the input was already reserved (usually \fBtrue\fR)
|
2020-07-15 07:31:49 +02:00
|
|
|
.IP \[bu]
|
2021-06-16 03:10:17 +02:00
|
|
|
\fBreserved\fR (boolean): whether the input is now reserved (may still be \fBtrue\fR if it was reserved for a long time)
|
|
|
|
|
|
|
|
.RE
|
|
|
|
|
|
|
|
If \fBreserved\fR is \fItrue\fR:
|
|
|
|
|
|
|
|
.RS
|
2020-07-15 07:31:49 +02:00
|
|
|
.IP \[bu]
|
2021-06-16 03:10:17 +02:00
|
|
|
\fBreserved_to_block\fR (u32): what blockheight the reservation will expire
|
2020-06-10 02:20:18 +02:00
|
|
|
|
2020-07-15 07:31:49 +02:00
|
|
|
.RE
|
2020-06-10 02:20:18 +02:00
|
|
|
|
2020-07-15 07:31:49 +02:00
|
|
|
On failure, an error is reported and no UTXOs are unreserved\.
|
2020-06-10 02:20:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
The following error codes may occur:
|
|
|
|
|
|
|
|
.RS
|
|
|
|
.IP \[bu]
|
2020-07-15 07:31:49 +02:00
|
|
|
-32602: Invalid parameter, i\.e\. an unparseable PSBT\.
|
2020-06-10 02:20:18 +02:00
|
|
|
|
|
|
|
.RE
|
|
|
|
.SH AUTHOR
|
|
|
|
|
|
|
|
niftynei \fI<niftynei@gmail.com\fR> is mainly responsible\.
|
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
|
|
|
|
\fBlightning-unreserveinputs\fR(7), \fBlightning-signpsbt\fR(7), \fBlightning-sendpsbt\fR(7)
|
|
|
|
|
|
|
|
.SH RESOURCES
|
|
|
|
|
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
\" SHA256STAMP:fb2f73820b1e9b632449b241c7587b5019d5891e0348835a84d435a98fd673e8
|