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

FreeBSD Manual Pages

  
 
  

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

NAME
       lightning-txsend	-- Command to sign and send transaction	from txprepare

SYNOPSIS
       txsend txid

DESCRIPTION
       The  txsend  RPC	 command signs and broadcasts a	transaction created by
       txprepare RPC command.

         txid (txid): The transaction id of the transaction created by	txpre-
	  pare rpc command.

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

         psbt (string): The completed PSBT representing the  signed  transac-
	  tion.
         tx (hex): The	fully signed transaction.
         txid (txid): The transaction id of tx.

ERRORS
       On  failure,  an	error is reported (from	bitcoind), and the inputs from
       the transaction are unreserved.

         -1: Catchall nonspecific error.

AUTHOR
       Rusty Russell <<rusty@rustcorp.com.au>> is mainly responsible.

SEE ALSO
       lightning-txprepare(7), lightning-txdiscard(7)

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

EXAMPLES
       Example 1:

       Request:

       $ lightning-cli txsend "txidtxprep000200002000020000200002000020000200002000020000200002"

       {
	 "id": "example:txsend#1",
	 "method": "txsend",
	 "params": [
	   "txidtxprep000200002000020000200002000020000200002000020000200002"
	 ]
       }

       Response:

       {
	 "tx": "02000000000101txsend00011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011",
	 "txid": "txidtxprep000200002000020000200002000020000200002000020000200002",
	 "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100"
       }

       Example 2:

       Request:

       $ lightning-cli txsend -k "txid"="txidtxprep000400004000040000400004000040000400004000040000400004"

       {
	 "id": "example:txsend#2",
	 "method": "txsend",
	 "params": {
	   "txid": "txidtxprep000400004000040000400004000040000400004000040000400004"
	 }
       }

       Response:

       {
	 "tx": "02000000000101txsend00022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022",
	 "txid": "txidtxprep000400004000040000400004000040000400004000040000400004",
	 "psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200"
       }

Core Lightning v25.02					   LIGHTNING-TXSEND(7)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=lightning-txsend&sektion=7&manpath=FreeBSD+Ports+14.3.quarterly>

home | help