![]() |
![]()
| ![]() |
![]()
NAMElightning-signpsbt -- Command to sign a wallet's inputs on a provided bitcoin transaction (PSBT). SYNOPSISsignpsbt psbt [signonly] DESCRIPTIONsignpsbt is a low-level RPC command which signs a PSBT as defined by BIP-174. 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.
RETURN VALUEOn success, an object is returned, containing:
ERRORSOn failure, one of the following error codes may be returned:
AUTHORVincenzo 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 ALSOlightning-fundpsbt(7), lightning-sendpsbt(7) RESOURCESMain web site: https://github.com/ElementsProject/lightning EXAMPLESExample 1: Request: $ lightning-cli signpsbt -k "psbt"="cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000" { Response: { Example 2: Request: $ lightning-cli signpsbt "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000" { Response: {
|