LIGHTNING-SIGNPSBT(7)
okay bestie, welcome to LIGHTNING-SIGNPSBT(7) β the manual page for signpsbt, and she is lowkey iconic π
π NAME π
signpsbt β Command to sign a wallet's inputs on a provided bitcoin transaction (PSBT). β¨
πΈ SYNOPSIS πΈ
signpsbt psbt [signonly]
π¦ DESCRIPTION π¦
signpsbt is a low-level RPC command which signs a PSBT as defined by BIP-174. no cap.
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. periodt.
bestie, heads up: the command will fail if there are no inputs to sign, or if the inputs to be signed were not previously reserved. That's a real vibe check fail π
psbt(string) β The psbt to be signed. π«Άsignonly(array of u32s, optional) β Input numbers to sign.:- (
u32, optional)
- (
β RETURN VALUE β
On success, an object is returned, containing:
signed_psbt(string) β The fully signed PSBT. π
π ERRORS π
On failure, one of the following error codes may be returned:
-32602β Error in given parameters, or there aren't wallet's inputs to sign, or we couldn't sign all ofsignonly, or inputs are not reserved.
π 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. iconic behavior, fr fr π
π SEE ALSO π
lightning-fundpsbt(7), lightning-sendpsbt(7)
π RESOURCES π
Main web site: https://github.com/ElementsProject/lightning
π EXAMPLES π
β¨ Example 1 β¨
Request:
$ lightning-cli signpsbt -k "psbt"="cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000"
{
"id": "example:signpsbt#1",
"method": "signpsbt",
"params": {
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000910000"
}
}
Response:
{
"signed_psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000111000"
}
β¨ Example 2 β¨
Request:
$ lightning-cli signpsbt "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000"
{
"id": "example:signpsbt#2",
"method": "signpsbt",
"params": [
"cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000101000"
]
}
Response:
{
"signed_psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000121000"
}
that's the whole page, bestie π«Ά this cutie is from Core Lightning v26.06.9 β footer vibes, but make it cute π
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms