2020-08-16 15:06:01 +02:00
lightning-signpsbt -- Command to sign a wallet's inputs on a provided bitcoin transaction (PSBT).
2020-08-26 14:43:56 +02:00
=================================================================================================
2020-08-16 15:06:01 +02:00
SYNOPSIS
--------
2022-01-26 18:18:49 +01:00
**signpsbt** *psbt* [*signonly*]
2020-08-16 15:06:01 +02:00
DESCRIPTION
-----------
2020-09-07 12:46:28 +02:00
**signpsbt** is a low-level RPC command which signs a PSBT as defined by
BIP-174.
- *psbt*: A string that represents the PSBT value.
- *signonly*: An optional array of input numbers to sign.
By default, all known inputs are signed, and others ignored: with
*signonly*, only those inputs are signed, and an error is returned if
one of them cannot be signed.
Note that the command will fail if there are no inputs to sign, or
if the inputs to be signed were not previously reserved.
2020-08-16 15:06:01 +02:00
EXAMPLE JSON REQUEST
2020-08-26 14:43:56 +02:00
--------------------
2020-08-16 15:06:01 +02:00
```json
{
"id": 82,
"method": "signpsbt",
"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:
- **signed_psbt** (string): The fully signed PSBT
2021-09-03 12:07:59 +02:00
2021-06-16 03:10:17 +02:00
[comment]: # (GENERATE-FROM-SCHEMA-END)
2020-08-16 15:06:01 +02:00
On failure, one of the following error codes may be returned:
2020-09-07 12:46:28 +02:00
- -32602: Error in given parameters, or there aren't wallet's inputs to sign, or we couldn't sign all of *signonly* , or inputs are not reserved.
2020-08-16 15:06:01 +02:00
EXAMPLE JSON RESPONSE
2020-08-26 14:43:56 +02:00
---------------------
2020-08-16 15:06:01 +02:00
```json
{
"psbt": "some_psbt"
}
```
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
--------
lightning-fundpsbt(7), lightning-sendpsbt(7)
RESOURCES
---------
Main web site: < https: / / github . com / ElementsProject / lightning >
2022-07-13 17:45:39 +02:00
[comment]: # ( SHA256STAMP:a64f3742f0c66ddf203afa3f69859d4385c4156fe99c30f0931e41ce95d944b1)