LIGHTNING-ASKRENE-CREATE-CHANNEL(7)
π LIGHTNING-ASKRENE-CREATE-CHANNEL(7) β askrene-create-channel
okay so bestie, listen: askrene-create-channel is an RPC command from the lightning-askrene-create-channel manual page, and it's literally the glow-up your layer needs. It adds a channel to a layer, that's the whole vibe β¨
πΈ SYNOPSIS πΈ
askrene-create-channel layer source destination short_channel_id
capacity_msat
π DESCRIPTION π
okay so this command was added in v24.11 β vintage, iconic, we love her π
The askrene-create-channel RPC command tells askrene to create a channel in the given layer. But heeere's the thing β creating it is only step one, bestie. To actually populate the channel, you gotta use askrene-update-channel in each direction. Yes, both. Go both ways, it's giving bidirectional main character energy π¦
layer(string) β the name of the layer you're applying this change to. Pick your layer, claim your layer πsource(pubkey) β the source node id for the channeldestination(pubkey) β the destination node id for the channel. Must be different fromsourceβ no, you cannot be your own destination, that's not the vibe okay πshort_channel_id(short_channel_id) β the short channel id for the channel. If a channel with this short channel id already exists inlayer, then thesource,destinationandcapacity_msatmust be the same. consistency is the moment, no cap πcapacity_msat(msat) β the capacity (onchain size) of the channel. NOTE: this is in millisatoshis! not sats, not BTC, millisatoshis. I cannot stress this enough, bestie π
β RETURN VALUE β
On success, an empty object is returned.
that's it. {}. the emptiest little slay, and honestly? it ate π
π AUTHOR π
Rusty Russell rusty@rustcorp.com.au is mainly responsible. π«Ά legend behavior, fr fr.
π SEE ALSO π
lightning-getroutes(7)lightning-askrene-disable-node(7)lightning-askrene-update-channel(7)lightning-askrene-inform-channel(7)lightning-askrene-listlayers(7)lightning-askrene-age(7)
all of them, in that order, the whole friend group π
π§ RESOURCES π§
Main web site: https://github.com/ElementsProject/lightning
π EXAMPLES π
Example 1:
Request:
$ lightning-cli askrene-create-channel -k "layer"="test_layers" "source"="nodeid030303030303030303030303030303030303030303030303030303030303" "destination"="nodeid010101010101010101010101010101010101010101010101010101010101" "short_channel_id"="0x0x1" "capacity_msat"="1000000sat"
{
"id": "example:askrene-create-channel#1",
"method": "askrene-create-channel",
"params": {
"layer": "test_layers",
"source": "nodeid030303030303030303030303030303030303030303030303030303030303",
"destination": "nodeid010101010101010101010101010101010101010101010101010101010101",
"short_channel_id": "0x0x1",
"capacity_msat": "1000000sat"
}
}
Response:
{}
okay that's the whole page, bestie, you're officially educated π β¨ this lil rewrite is serving Core Lightning v26.06.9 β go forth and populate those channels in both directions, 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