LIGHTNING-ASKRENE-BIAS-NODE(7)
π NAME π
okay so this is the manual for lightning-askrene-bias-node β the page is LIGHTNING-ASKRENE-BIAS-NODE(7) bestie, and it's literally the command that slaps a manual bias on a node inside a layer. That's it. That's the whole vibe. π
β¨ SYNOPSIS β¨
askrene-bias-node layer node direction bias [description] [relative]
π¦ DESCRIPTION π¦
So this command was added in v25.12 (yes, it's giving baby-of-the-family energy πΈ).
askrene-bias-node is the RPC command that tells askrene to favor or disfavor all the outgoing or incoming channels of a node when it's out here considering them for routing. Basically you're telling the router "hey girl, this one's a queen" or "hmm, not this one". π
Here's the rundown on the arguments, no cap:
layer(string) β the name of the layer you're applying this bias to.node(pubkey) β the node this bias applies to. It does not need to exist, so don't even worry about it bestie π«Ά.direction(string) β eitherinorout, to specify if the bias applies to incoming or outgoing channels with respect to this node. Pick a side, main character.bias(integer) β the bias itself. Positive is good, negative is bad, and0is literally no bias at all. Useful values are+/-1through+/-10, though-100through+100are possible values. So like, you can go to-100, it's just a lot. πdescription(string, optional) β a description/annotation to display inaskrene-listlayers(7). Cute lil label, we love a paper trail β¨.relative(boolean, optional) β the bias will be added to the previous value. The default isFalse. Lowkey important, highkey useful.
π RETURN VALUE π
When it works (and it will π
), an object containing node_biases comes back. It's an array of objects, and every single object in there contains:
layer(string) β the name of the layer this bias applies to.node(pubkey) β the id of the biased node.in_bias(integer) β the bias (-100to+100) on incoming channels.out_bias(integer) β the bias (-100to+100) on outgoing channels.timestamp(u64) β the UNIX timestamp for when this bias was created or last updated. Time-stamped, iconic. β°description(string, optional) β a human readable annotation.
π§ AUTHOR π§
Lagrange lagrang3@protonmail.com is mainly responsible. Give her her flowers fr fr π.
π₯ SEE ALSO π₯
lightning-askrene-bias-channel(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-node -k "layer"="test_layers" "node"="nodeid030303030303030303030303030303030303030303030303030303030303" "direction"="out" "bias"=1
{
"id": "example:askrene-bias-node#1",
"method": "askrene-bias-node",
"params": {
"layer": "test_layers",
"node": "nodeid030303030303030303030303030303030303030303030303030303030303",
"direction": "out",
"bias": 1
}
}
Response:
{
"node_biases": [
{
"layer": "test_layers",
"node": "nodeid030303030303030303030303030303030303030303030303030303030303",
"in_bias": 0,
"out_bias": 1
}
]
}
Example 2:
Request:
$ lightning-cli askrene-bias-node "test_layers" "nodeid030303030303030303030303030303030303030303030303030303030303" "out" "-5" "this node is unreliable"
{
"id": "example:askrene-bias-node#2",
"method": "askrene-bias-node",
"params": [
"test_layers",
"nodeid030303030303030303030303030303030303030303030303030303030303",
"out",
-5,
"this node is unreliable"
]
}
Response:
{
"node_biases": [
{
"layer": "test_layers",
"node": "nodeid030303030303030303030303030303030303030303030303030303030303",
"description": "this is node is unreliable",
"in_bias": 0,
"out_bias": -5
}
]
}
ngl bestie, peep that "this is node is unreliable" β that's exactly how it's printed in the original, so we're keeping it character for character. Not me fixing it, no ma'am π.
that's the whole page, bestie!! π this was Core Lightning v26.06.9, page LIGHTNING-ASKRENE-BIAS-NODE(7) β go forth and bias responsibly, 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