LIGHTNING-ASKRENE-CREATE-CHANNEL(7)

πŸ“¦
version 26.06.9 Β· 2 versions
, in nixpkgs unstable

πŸ’… 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 channel
  • destination (pubkey) β€” the destination node id for the channel. Must be different from source β€” 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 in layer, then the source, destination and capacity_msat must 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 πŸ‘‘

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