Here follows the tale of how I managed to get my CLN node connected to Stacker.News today. One section for each required field in https://stacker.news/wallets/cln. Hopefully it will help another wallet-straggler like me.
rest host and port
In the StartOS web UI: Go to Core Lighting -> Properties.
Make the "CLNRest Quick Connect"-section visible. (If it's not shown, you need to enable the CLNRest plugin under Core Lightning -> Config -> Advanced -> Plugins).
Copy the "foo.onion:3010" part from
clnrest://<nodeid>@foo.onion:3010?rune=yadayada
into the 1st field.invoice only rune
The StartOS web interface for Core Lightning allows creating full-capability runes, but Stacker News requires a restricted rune, so we have to drop to CLI.
In the StartOS web UI: Go to System -> SSH and add a new SSH key in order to be able to connect via the command line (docs). Once set up, login to your node:
ssh start9@<address of your StartOS node>
Via SSH, follow the instructions for dropping into a shell inside a container. Something like:
sudo podman exec -it c-lightning.embassy bash
Create an invoice-only rune using slightly different syntax than in the SN help, note the extra angle brackets(!):
lightning-cli createrune restrictions='[["method=invoice"]]'
The output should be
{ "rune": "<base64-value>", "unique_id": "1" }
base64-value
is what you need to copy into the 2nd field.cert
(I was surprised this was required as we are running behind a Tor hidden service, but okay...)
Open up your node's certificate (downloadable from the StartOS web UI under System -> Root CA).
Copy the public key value, it may be displayed in Base64 or in hex. For me, Firefox was showing it in hexadecimal with extra ":"-delimiters that I needed to discard. This is the value for the 3rd field.
'
and then inside"
or the other way around?"
since"
does not disable shell expansion but'
does.$SHELL
isbash
. Maybe something in newer CLN versions made the parameter actually be an array of arrays?createrune
docs, that might indeed be the case:--clnrest-protocol=http
?foo.onion:3010
? It better be rate limited.