LIGHTNING-SENDPSBT(7)

πŸ“¦
version 26.06.9 Β· 2 versions
, in nixpkgs unstable

✨ 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 is 72.

πŸ”₯ 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