LIGHTNING-ASKRENE-RESERVE(7)
π LIGHTNING-ASKRENE-RESERVE(7) β the askrene-reserve manual, bestie edition π
okay so real talk, this is the manual page for lightning-askrene-reserve (that's the 7th section, obvs), and honestly? it's a whole vibe. it's short, it's sweet, and it's literally the "hey bestie i'm trying this path rn" of the Lightning world. let's get into it β¨
πΈ NAME πΈ
askrene-reserve β the command that's basically you tapping askrene on the shoulder like "bestie, just so you know, i'm trying a path rn π"
π¦ SYNOPSIS π¦
askrene-reserve path
that's it. that's the whole call. iconic, honestly π
π DESCRIPTION π
so this command was added in v24.11 β mark your calendars π β¨
the askrene-reserve RPC command is how you tell askrene that a path is currently being attempted. and like, why does that matter? because askrene then takes that into account when other getroutes calls happen later. it's giving "i'm holding this spot, don't give it away" energy, and honestly she ate π₯
β οΈ okay important: you should callaskrene-unreserveafter the attempt has finished β and you gotta do it before you callaskrene-inform. don't leave a reservation hanging, that's a red flag fr fr π
also note that any additional properties inside the path elements are ignored β which is super useful when you're feeding it the result of getroutes, since that output brings extra stuff along and askrene is just like "cool, don't care, still works" π«Ά
path(array of objects) β the path in question, bestie:short_channel_id_dir(short_channel_id_dir) β the channel and the direction that joins these nodes together πamount_msat(msat) β the amount you're sending into this hop πΈlayer(string, optional) β the layer to restrict this reservation to. and like, it's only useful for fake channels that aren't uniquely identified byshort_channel_id_dirβ because otherwise those fake channels would confuse multiple unrelated callers, which is a whole mess honestly π (added v25.12)
β RETURN VALUE β
on success? you get an empty object back. that's it. {} and done. no notes π
π§ AUTHOR π§
Rusty Russell rusty@rustcorp.com.au is mainly responsible for this one. king behavior, no cap ππ
π₯ SEE ALSO π₯
go read those too, they all click together iykyk π«Ά
π RESOURCES π
main web site: https://github.com/ElementsProject/lightning β go poke around, it's cute over there π¦
π EXAMPLES π
Example 1
Request:
$ lightning-cli askrene-reserve -k "path"='[{"short_channel_id_dir": "109x1x1/1", "amount_msat": 1250000}, {"short_channel_id_dir": "123x1x1/0", "amount_msat": 1250001}]'
{
"id": "example:askrene-reserve#1",
"method": "askrene-reserve",
"params": {
"path": [
{
"short_channel_id_dir": "109x1x1/1",
"amount_msat": 1250000
},
{
"short_channel_id_dir": "123x1x1/0",
"amount_msat": 1250001
}
]
}
}
Response:
{}
Example 2
Request:
$ lightning-cli askrene-reserve -k "path"='[{"short_channel_id_dir": "109x1x1/1", "amount_msat": 1250000000000}, {"short_channel_id_dir": "123x1x1/0", "amount_msat": 1250000000000}]'
{
"id": "example:askrene-reserve#2",
"method": "askrene-reserve",
"params": {
"path": [
{
"short_channel_id_dir": "109x1x1/1",
"amount_msat": 1250000000000
},
{
"short_channel_id_dir": "123x1x1/0",
"amount_msat": 1250000000000
}
]
}
}
Response:
{}
bestie that's the whole page π this came to you courtesy of Core Lightning v26.06.9 β stay slay, stay reserved, and don't forget to unreserve πΈβ¨π
π¦ 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