Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
LIGHTNING-RESERVEINPUTS(7)  lightning-reserveinputs LIGHTNING-RESERVEINPUTS(7)

NAME
       lightning-reserveinputs - Construct a transaction and reserve the UTXOs
       it spends

SYNOPSIS
       reserveinputs psbt [exclusive]

DESCRIPTION
       The 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.  If	exclusive  is  set  to	False,	then  existing
       reservations are	simply extended, rather	than causing failure.

RETURN VALUE
       On  success,  a	reservations array is returned,	with an	entry for each
       input which was reserved:

	      o	     txid is the input transaction id.

	      o	     vout is the input index.

	      o	     was_reserved indicates whether the	input was already  re-
		     served.

	      o	     reserved  indicates  that the input is now	reserved (i.e.
		     true).

	      o	     reserved_to_block indicates what blockheight the reserva-
		     tion will expire.

       On failure, an error is reported	and no UTXOs are reserved.

       The following error codes may occur:

	      o	     -32602: Invalid parameter,	such as	specifying a spent/re-
		     served input in psbt.

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

						    LIGHTNING-RESERVEINPUTS(7)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | AUTHOR | SEE ALSO | RESOURCES

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=lightning-reserveinputs&sektion=7&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help