![]() |
![]()
| ![]() |
![]()
NAMElightning-reserveinputs -- Construct a transaction and reserve the UTXOs it spends SYNOPSISreserveinputs psbt [exclusive] [reserve] DESCRIPTIONThe reserveinputs RPC command places (or increases) reservations on any inputs specified in psbt which are known to lightningd. It will fail with an error if any of the inputs are known to be spent, and ignore inputs which are unknown. Normally the command will fail (with no reservations made) if an input is already reserved.
RETURN VALUEOn success, an object containing reservations is returned. It is an array of objects, where each object contains:
ERRORSOn failure, an error is reported and no UTXOs are reserved.
AUTHORLisa Neigut <niftynei@gmail.com> is mainly responsible. SEE ALSOlightning-unreserveinputs(7), lightning-signpsbt(7), lightning-sendpsbt(7) RESOURCESMain web site: https://github.com/ElementsProject/lightning EXAMPLESExample 1: Request: $ lightning-cli reserveinputs -k "psbt"="cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100" { Response: { Example 2: Request: $ lightning-cli reserveinputs -k "psbt"="cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200011200" { Response: {
|