LIGHTNING-ASKRENE-BIAS-CHANNEL(7)
π LIGHTNING-ASKRENE-BIAS-CHANNEL(7) β askrene-bias-channel
okay bestie, welcome to lightning-askrene-bias-channel, section 7 of the Lightning manual. this is the RPC that lets you manually push askrene's vibe check on a channel one way or the other πΈ
β¨ NAME β¨
askrene-bias-channel β the command that slaps a manual bias on a channel inside a layer π
π¦ SYNOPSIS π¦
askrene-bias-channel layer short_channel_id_dir bias [description]
[relative]
π DESCRIPTION π
Command added in v24.11. yep, it's a newer one, not some ancient legacy thing π
The askrene-bias-channel RPC command tells askrene to favor or disfavor a channel when it's considering it for routing. it's giving "i have opinions about this channel specifically" and honestly? valid.
layer(string) β the name of the layer you want to apply this bias to.short_channel_id_dir(short_channel_id_dir) β the short channel id and direction to apply this bias to. direction matters, bestie, don't forget it πbias(integer) β the bias itself. positive = good, negative = bad, and0= no bias at all. the useful values are+/-1through+/-10, though-100through+100are possible values. so like yeah you can go to the extremes, but the sweet spot is tiny πdescription(string, optional) β description/annotation to display inaskrene-listlayers(7). cute lil note for future you π«Άrelative(boolean, optional) β the bias will be added to the previous value. the default isFalse. (addedv25.05) so flip this on when you wanna stack on top of whatever's already there β¨
π RETURN VALUE π
On success, an object containing biases is returned. it's an array of objects, and each object contains:
layer(string) β the name of the layer this bias applies to.short_channel_id_dir(short_channel_id_dir) β the short channel id and direction.bias(integer) β the bias (-100to+100).timestamp(u64) β the UNIX timestamp when this bias was created. (addedv25.12) βdescription(string, optional) β the manpage literally describes this one as "The bias (-100 to +100)" π that's what it says, we're keeping it, no cap.
π AUTHOR π
Rusty Russell rusty@rustcorp.com.au is mainly responsible. icon behavior, honestly π
π§ SEE ALSO π§
lightning-askrene-bias-node(7)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-bias-channel -k "layer"="test_layers" "short_channel_id_dir"="109x1x1/1" "bias"=1
{
"id": "example:askrene-bias-channel#1",
"method": "askrene-bias-channel",
"params": {
"layer": "test_layers",
"short_channel_id_dir": "109x1x1/1",
"bias": 1
}
}
Response:
{
"biases": [
{
"layer": "test_layers",
"short_channel_id_dir": "109x1x1/1",
"bias": 1
}
]
}
Example 2
Request:
$ lightning-cli askrene-bias-channel "test_layers" "109x1x1/1" "-5" "bigger bias"
{
"id": "example:askrene-bias-channel#2",
"method": "askrene-bias-channel",
"params": [
"test_layers",
"109x1x1/1",
-5,
"bigger bias"
]
}
Response:
{
"biases": [
{
"layer": "test_layers",
"short_channel_id_dir": "109x1x1/1",
"description": "bigger bias",
"bias": -5
}
]
}
ok that's the whole page, go bias some channels responsibly bestie π«Άπ
Core Lightning v26.06.9 β that's the version this page came from, mwah πβ¨
π¦ 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