LIGHTNING-ASKRENE-INFORM-CHANNEL(7)
π¦ LIGHTNING-ASKRENE-INFORM-CHANNEL(7) π¦
okay bestie, welcome to the manual page for askrene-inform-channel, which lives in section 7 of the Core Lightning manuals. this one's literally the "hey queen, here's what actually happened on this channel" command and it's lowkey iconic π
β¨ NAME β¨
askrene-inform-channel β the command that adds channel capacity restrictions to a layer. periodt.
π SYNOPSIS π
askrene-inform-channel layer short_channel_id_dir amount_msat inform
π DESCRIPTION π
so, this command was added in v24.11 (yes, we've been thriving since then π«Ά).
The askrene-inform-channel RPC command tells askrene about channels we used, so it can update its capacity estimates. it's giving "receipts, but for liquidity" ngl.
For most accuracy, you should remove your own reservations before calling this. like, clean up your room first, then invite guests, yk? π§Ή
and the cute part: it can be applied whether the current channel exists or not. π channel? never heard of her. doesn't matter, still works.
layer(string) β the name of the layer to apply this change to. also causes us to consider any reservations which are local to that layer (which is super useful for fake channels wherelayeris set in anaskrene-reservepath object). πshort_channel_id_dir(short_channel_id_dir) β the short channel id and direction to apply this change to.amount_msat(msat) β the amount we used on the channel πΈinform(string) β one of"constrained","unconstrained","succeeded". this is the vibe check on the payment: whether this payment passed (implying capacity of at least that amount), failed (implying maximum capacity of one msat less), or succeeded (implying capacity has been reduced in this direction).
ngl that inform list is doing a little bit of a chaotic dance β three literal values, and the explanation describes them as passed / failed / succeeded. bestie, just copy the values exactly and you'll slay. π₯
πΈ RETURN VALUE πΈ
On success, an object containing constraints is returned. it's an array of objects, where each object contains:
short_channel_id_dir(short_channel_id_dir) β the short channel id and directionlayer(string) β the name of the layer to apply this change to.timestamp(u64) β the UNIX timestamp when this constraint was created. β°maximum_msat(msat, optional) β the maximum value which this channel could pass.minimum_msat(msat, optional) β the minimum value which this channel could pass.
π«Ά AUTHOR π«Ά
Rusty Russell rusty@rustcorp.com.au is mainly responsible. (main character energy fr fr π)
π SEE ALSO π
lightning-getroutes(7)lightning-askrene-disable-node(7)lightning-askrene-create-channel(7)lightning-askrene-listlayers(7)lightning-askrene-age(7)
β RESOURCES β
Main web site: https://github.com/ElementsProject/lightning π¦
π EXAMPLES π
Example 1: β¨
Request:
$ lightning-cli askrene-inform-channel -k "layer"="test_layers" "short_channel_id_dir"="0x0x1/1" "amount_msat"=100000 "inform"="unconstrained"
{
"id": "example:askrene-inform-channel#1",
"method": "askrene-inform-channel",
"params": {
"layer": "test_layers",
"short_channel_id_dir": "0x0x1/1",
"amount_msat": 100000,
"inform": "unconstrained"
}
}
Response:
{
"constraints": [
{
"layer": "test_layers",
"short_channel_id_dir": "0x0x1/1",
"timestamp": 1738000000,
"minimum_msat": 100000
}
]
}
look at that response β clean, minimal, minimum_msat: 100000 because we told it the payment was unconstrained. ate and left no crumbs π
and that's the whole page bestie! this lil masterpiece is from Core Lightning v26.06.9 β go forth and inform those channels, no cap πβ¨
π¦ 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