home | help
LIGHTNING-SENDPSBT(7)					   LIGHTNING-SENDPSBT(7)

NAME
     sendpsbt  --  Command to finalize, extract and send a partially signed bit-
     coin transaction (PSBT).

SYNOPSIS
     sendpsbt psbt [reserve]

DESCRIPTION
     The sendpsbt is a low-level RPC command which sends  a  fully-signed  PSBT.
     If  the  PSBT  is	the same one promised by a channel (via fundchannel_com-
     plete) it will also be associated with that channel and  re-transmitted  if
     necessary on restart.

     *	psbt (string): The fully signed psbt to be sent.
     *	reserve (u32, optional): Number of blocks to increase reservation of any
	of our inputs by. The default is 72.

RETURN VALUE
     On success, an object is returned, containing:

     *	tx (hex): The raw transaction which was sent.
     *	txid (txid): The txid of the tx.

ERRORS
     On failure, one of the following error codes may be returned:

     *	-32602: Error in given parameters or some error happened during the com-
	mand process.

AUTHOR
     Vincenzo  Palazzo vincenzo.palazzo@protonmail.com wrote the initial version
     of this man page, but many others did the hard work of actually  implement-
     ing this rpc command.

SEE ALSO
     lightning-fundpsbt(7), lightning-signpsbt(7), lightning-listtransactions(7)

RESOURCES
     Main web site: https://github.com/ElementsProject/lightning

EXAMPLES
     Example 1:

     Request:

     $ lightning-cli sendpsbt -k "psbt"="cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000"

     {
       "id": "example:sendpsbt#1",
       "method": "sendpsbt",
       "params": {
	 "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000"
       }
     }

     Response:

     {
       "tx": "02000000000155multiw61000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000",
       "txid": "txid6100061000610006100061000610006100061000610006100061000"
     }

Core Lightning v26.06.1 				   LIGHTNING-SENDPSBT(7)

home | help