lightning-sendpsbt -- Command to finalize, extract and send a
partially signed bitcoin transaction (PSBT).
The sendpsbt is a low-level RPC command which sends a
fully-signed PSBT.
- 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.
On success, an object is returned, containing:
- tx (hex): The raw transaction which was sent.
- txid (txid): The txid of the tx.
On failure, one of the following error codes may be returned:
- •
- -32602: Error in given parameters or some error happened during the
command process.
Vincenzo Palazzo
<vincenzo.palazzo@protonmail.com>
wrote the initial version of this man page, but many others did the hard
work of actually implementing this rpc command.
lightning-fundpsbt(7), lightning-signpsbt(7),
lightning-listtransactions(7)
Example 1:
Request:
$ lightning-cli sendpsbt -k "psbt"="cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000"
{
"id": "example:sendpsbt#1",
"method": "sendpsbt",
"params": {
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000"
}
}
Response:
{
"tx": "02000000000155multiw61000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000",
"txid": "txid6100061000610006100061000610006100061000610006100061000"
}