LIGHTNING-TXSEND(7)
πΈ lightning-txsend(7) β the glow-up πΈ
okay bestie, so this is the manual page for LIGHTNING-TXSEND, and it's genuinely so simple you're gonna slay it. it's the "hit send on the thing you already prepped" command. main character energy fr fr.
β¨ NAME β¨
txsend β the command that signs and sends a transaction that came out of txprepare. it's giving "you already did the hard part, now just press the button" π«Ά
πΈ SYNOPSIS πΈ
txsend txid
π¦ DESCRIPTION π¦
the txsend RPC command signs and broadcasts a transaction that was created by the txprepare RPC command. that's it. that's the whole vibe. β¨
txid(txid) β the transaction id of the transaction that thetxpreparerpc command made. you're literally just handing it the receipt from last time, no cap.
π RETURN VALUE π
when it works (and it will, bestie), you get back an object containing:
psbt(string) β the completed PSBT representing the signed transaction. like the fully finished, signed-off version πtx(hex) β the fully signed transaction. the actual thing π₯³txid(txid) β the transaction id oftx. so you know which one it is π
π ERRORS π
if it flops, an error is reported (coming from bitcoind), and the inputs from the transaction are unreserved. like, they get released. noted. π
-1β catchall nonspecific error. the "something went wrong, that's all we know" one. iconic in its vagueness honestly.
π AUTHOR π
Rusty Russell rusty@rustcorp.com.au is mainly responsible. we stan a legend π«Ά
π§ SEE ALSO π§
π RESOURCES π
main web site: https://github.com/ElementsProject/lightning β go be nosy, iykyk π
β EXAMPLES β
example 1 π
request:
$ lightning-cli txsend "txidtxprep000200002000020000200002000020000200002000020000200002"
{
"id": "example:txsend#1",
"method": "txsend",
"params": [
"txidtxprep000200002000020000200002000020000200002000020000200002"
]
}
response:
{
"tx": "02000000000101txsend00011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011000110001100011",
"txid": "txidtxprep000200002000020000200002000020000200002000020000200002",
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100011100"
}
example 2 π¦
request:
$ lightning-cli txsend -k "txid"="txidtxprep000400004000040000400004000040000400004000040000400004"
{
"id": "example:txsend#2",
"method": "txsend",
"params": {
"txid": "txidtxprep000400004000040000400004000040000400004000040000400004"
}
}
response:
{
"tx": "02000000000101txsend00022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022000220002200022",
"txid": "txidtxprep000400004000040000400004000040000400004000040000400004",
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200022200"
}
and that's the whole page, bestie π this was Core Lightning v26.06.9 β go sign something and be iconic. periodt. πβ¨
π¦ 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