LIGHTNING-UNRESERVEINPUTS(7)
π LIGHTNING-UNRESERVEINPUTS(7) π
okay bestie, welcome to your new favorite manual page: lightning-unreserveinputs, from the Core Lightning fam. it's literally the "release reserved UTXOs" moment and it ate, no cap β¨
πΈ NAME πΈ
unreserveinputs β release reserved UTXOs π«Ά
π SYNOPSIS π
unreserveinputs psbt [reserve]
π¦ DESCRIPTION π¦
okay so the unreserveinputs RPC command releases (or lowkey just reduces the reservation) on UTXOs that were previously marked as reserved β and those were, like, generally marked by lightning-reserveinputs(7) in the first place. main character energy tbh π
psbt(string): the inputs you want to unreserve are exactly the inputs specified in the passed-in psbt. that's the whole vibe check.reserve(u32, optional): how many blocks to decrease the reservation by. the default is72. yeah,72. iconic default number fr fr.
β¨ RETURN VALUE β¨
on success, you get an object containing reservations. it's an array of objects, and every single object contains:
txid(txid): the transaction id π§vout(u32): the output number which was reservedwas_reserved(boolean): whether the input was already reserved (usuallytrue)reserved(boolean): whether the input is now reserved β and heads up, it may still betrueif it was reserved for a long time π
if reserved is true:
reserved_to_block(u32): what blockheight the reservation will expire. so you know exactly when it's over, like a situationship π
π ERRORS π
on failure, an error is reported and no UTXOs are unreserved. nothing happens. zero. zilch. the reservation stays put, bestie π
-32602: invalid parameter, i.e. an unparseable PSBT.
π AUTHOR π
Lisa Neigut niftynei@gmail.com is mainly responsible. queen behavior, we stan ππ«Ά
π SEE ALSO π
lightning-unreserveinputs(7), lightning-signpsbt(7), lightning-sendpsbt(7)
β RESOURCES β
main web site: https://github.com/ElementsProject/lightning
π EXAMPLES π
Example 1 π
Request:
$ lightning-cli unreserveinputs -k "psbt"="cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000" "reserve"=200
{
"id": "example:unreserveinputs#1",
"method": "unreserveinputs",
"params": {
"psbt": "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000310000",
"reserve": 200
}
}
Response:
{
"reservations": []
}
Example 2 π
Request:
$ lightning-cli unreserveinputs "cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000"
{
"id": "example:unreserveinputs#2",
"method": "unreserveinputs",
"params": [
"cHNidP8BAgQCAAAAAQMEbwAAAAEEAQpsbt410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000410000"
]
}
Response:
{
"reservations": []
}
ngl, both examples return an empty reservations array, so don't come for me β that's literally what the page says π
and that's the whole page, bestie!! thanks for reading, this was Core Lightning v26.06.9, and the date line is LIGHTNING-UNRESERVEINPUTS(7) β slay, 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