LIGHTNING-SENDPSBT(7)
β¨ NAME β¨
sendpsbt β the lowkey RPC command that finalizes, extracts, and sends a partially signed bitcoin transaction (a PSBT, bestie π
). It's the lightning-sendpsbt manual page, and yes we're getting into it.
π SYNOPSIS π
sendpsbt psbt [reserve]
π DESCRIPTION π
Okay so picture this: sendpsbt is a low-level RPC command that sends a fully-signed PSBT. That's it, that's the vibe. π¦
But here's the iconic part β if the PSBT is the same one promised by a channel (you know, via fundchannel_complete), then it'll also get associated with that channel, and it gets re-transmitted if necessary on restart. It remembers. It's loyal. π«Ά
psbt(string) β the fully signed psbt to be sent. Fully signed, girly. This is not a drill.reserve(u32, optional) β number of blocks to increase reservation of any of our inputs by. The default is72.
π₯ RETURN VALUE π₯
Slay, it worked. On success you get an object back containing:
tx(hex) β the raw transaction which was sent.txid(txid) β the txid of the tx.
π ERRORS π
If it flops, one of the following error codes may be returned:
-32602β error in given parameters, or some error happened during the command process. (iykyk, sometimes things just happen π)
π 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. Respect the whole squad fr fr. π
π SEE ALSO π
β RESOURCES β
Main web site: https://github.com/ElementsProject/lightning
π§ EXAMPLES π§
Example 1:
Request:
$ lightning-cli sendpsbt -k "psbt"="cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000"
{
"id": "example:sendpsbt#1",
"method": "sendpsbt",
"params": {
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000711000"
}
}
Response:
{
"tx": "02000000000155multiw61000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000610006100061000",
"txid": "txid6100061000610006100061000610006100061000610006100061000"
}
Bestie reminder: fully signed PSBT only, okay? This is the low-level send, not a vibes-based guessing game. π
And that's the whole page, no cap. This was Core Lightning v26.06.9, LIGHTNING-SENDPSBT(7) β go forth and send that PSBT, you absolute icon. πβ¨π
π¦ 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