2020-08-13 18:19:35 +02:00
lightning-sendpsbt -- Command to finalize, extract and send a partially signed bitcoin transaction (PSBT).
2020-08-26 14:43:56 +02:00
==========================================================================================================
2020-08-13 18:19:35 +02:00
SYNOPSIS
--------
2022-01-26 18:18:49 +01:00
**sendpsbt** *psbt* [*reserve*]
2020-08-13 18:19:35 +02:00
DESCRIPTION
-----------
2020-09-07 12:46:28 +02:00
The **sendpsbt** is a low-level RPC command which sends a fully-signed PSBT.
2020-08-13 18:19:35 +02:00
2020-09-07 12:46:28 +02:00
- *psbt*: A string that represents psbt value.
2021-05-26 03:19:37 +02:00
- *reserve*: an optional number of blocks to increase reservation of any of our inputs by; default is 72.
2020-08-13 18:19:35 +02:00
EXAMPLE JSON REQUEST
2020-08-26 14:43:56 +02:00
--------------------
2020-08-13 18:19:35 +02:00
```json
{
"id": 82,
"method": "sendpsbt",
"params": {
"psbt": "some_psbt"
}
}
```
RETURN VALUE
------------
2021-06-16 03:10:17 +02:00
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object is returned, containing:
- **tx** (hex): The raw transaction which was sent
- **txid** (txid): The txid of the **tx**
2021-09-03 12:07:59 +02:00
2021-06-16 03:10:17 +02:00
[comment]: # (GENERATE-FROM-SCHEMA-END)
2020-08-13 18:19:35 +02:00
On failure, one of the following error codes may be returned:
2020-08-31 14:42:28 +02:00
- -32602: Error in given parameters or some error happened during the command process.
2020-08-13 18:19:35 +02:00
EXAMPLE JSON RESPONSE
2020-08-26 14:43:56 +02:00
---------------------
2020-08-13 18:19:35 +02:00
```json
{
"txid": "05985072bbe20747325e69a159fe08176cc1bbc96d25e8848edad2dddc1165d0",
"tx": "02000000027032912651fc25a3e0893acd5f9640598707e2dfef92143bb5a4020e335442800100000017160014a5f48b9aa3cb8ca6cc1040c11e386745bb4dc932ffffffffd229a4b4f78638ebcac10a68b0561585a5d6e4d3b769ad0a909e9b9afaeae24e00000000171600145c83da9b685f9142016c6f5eb5f98a45cfa6f686ffffffff01915a01000000000017a9143a4dfd59e781f9c3018e7d0a9b7a26d58f8d22bf8700000000",
}
```
AUTHOR
------
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.
SEE ALSO
--------
2020-08-26 14:43:56 +02:00
lightning-fundpsbt(7), lightning-signpsbt(7), lightning-listtransactions(7)
2020-08-13 18:19:35 +02:00
RESOURCES
---------
Main web site: < https: / / github . com / ElementsProject / lightning >
2021-11-04 15:15:51 +01:00
[comment]: # ( SHA256STAMP:044cdcd69e6ece931b6d0f9b25dd842fd456ee479725e610c03694210256583f)