2020-06-10 02:20:18 +02:00
|
|
|
lightning-unreserveinputs -- Release reserved UTXOs
|
|
|
|
===================================================
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-01-26 18:18:49 +01:00
|
|
|
**unreserveinputs** *psbt* [*reserve*]
|
2020-06-10 02:20:18 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
2020-07-15 07:31:49 +02:00
|
|
|
The **unreserveinputs** RPC command releases (or reduces reservation)
|
|
|
|
on UTXOs which were previously marked as reserved, generally by
|
|
|
|
lightning-reserveinputs(7).
|
2020-06-10 02:20:18 +02:00
|
|
|
|
|
|
|
The inputs to unreserve are the inputs specified in the passed-in *psbt*.
|
|
|
|
|
2021-05-26 03:19:37 +02:00
|
|
|
If *reserve* is specified, it is the number of blocks to decrease
|
|
|
|
reservation by; default is 72.
|
|
|
|
|
2020-06-10 02:20:18 +02:00
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object containing **reservations** is returned. It is an array of objects, where each object contains:
|
2022-09-05 23:33:09 +02:00
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
- **txid** (txid): the transaction id
|
|
|
|
- **vout** (u32): the output number which was reserved
|
2022-09-05 23:45:06 +02:00
|
|
|
- **was\_reserved** (boolean): whether the input was already reserved (usually `true`)
|
2021-06-16 03:10:17 +02:00
|
|
|
- **reserved** (boolean): whether the input is now reserved (may still be `true` if it was reserved for a long time)
|
2020-06-10 02:20:18 +02:00
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
If **reserved** is *true*:
|
2022-09-05 23:33:09 +02:00
|
|
|
|
2022-09-05 23:45:06 +02:00
|
|
|
- **reserved\_to\_block** (u32): what blockheight the reservation will expire
|
2021-09-03 12:07:59 +02:00
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
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:
|
2023-10-14 10:09:05 +02:00
|
|
|
|
2020-07-15 07:31:49 +02:00
|
|
|
- -32602: Invalid parameter, i.e. an unparseable PSBT.
|
2020-06-10 02:20:18 +02:00
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
niftynei <<niftynei@gmail.com>> is mainly responsible.
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
|
|
|
lightning-unreserveinputs(7), lightning-signpsbt(7), lightning-sendpsbt(7)
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
2020-08-25 03:33:16 +02:00
|
|
|
|
2023-01-30 07:24:16 +01:00
|
|
|
[comment]: # ( SHA256STAMP:c8b09a8971d97627d242e348c13d38671e84467a7afa1dc0a73941ab13fdeaff)
|