mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-06 05:49:30 +01:00
56ea215ba0
reserveinputs marks UTXOs reserved for 12 hours, so we won't select them for spending: unreserveinputs marks them available again. Exposes param_psbt() for wider use. Disabled the test_sign_and_send_psbt since we're altering the API; the final patch restores it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
55 lines
1.3 KiB
Groff
Generated
55 lines
1.3 KiB
Groff
Generated
.TH "LIGHTNING-RESERVEINPUTS" "7" "" "" "lightning-reserveinputs"
|
|
.SH NAME
|
|
lightning-reserveinputs - Construct a transaction and reserve the UTXOs it spends
|
|
.SH SYNOPSIS
|
|
|
|
\fBreserveinputs\fR \fIpsbt\fR
|
|
|
|
.SH DESCRIPTION
|
|
|
|
The \fBreserveinputs\fR RPC command places (or increases) reservations on any
|
|
inputs specified in \fIpsbt\fR which are known to lightningd\. It will fail
|
|
with an error it any of the inputs are known to be spent\.
|
|
|
|
.SH RETURN VALUE
|
|
|
|
On success, an \fIreservations\fR array is returned, with an entry for each input
|
|
which was reserved:
|
|
|
|
.RS
|
|
.IP \[bu]
|
|
\fItxid\fR is the input transaction id\.
|
|
.IP \[bu]
|
|
\fIvout\fR is the input index\.
|
|
.IP \[bu]
|
|
\fIwas_reserved\fR indicates whether the input was already reserved\.
|
|
.IP \[bu]
|
|
\fIreserved\fR indicates that the input is now reserved (i\.e\. true)\.
|
|
.IP \[bu]
|
|
\fIreserved_to_block\fR indicates what blockheight the reservation will expire\.
|
|
|
|
.RE
|
|
|
|
On failure, an error is reported and no UTXOs are reserved\.
|
|
|
|
|
|
The following error codes may occur:
|
|
|
|
.RS
|
|
.IP \[bu]
|
|
-32602: Invalid parameter, such as specifying a spent input in \fIpsbt\fR\.
|
|
|
|
.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
|
|
|