Has anyone gotten the clnrest plugin to work on a #CoreLightning node? Supposed to be built in now but when I try to specify the "clnrest-port" configuration option, lightningd says it doesn't recognize the option?

Reply to this note

Please Login to reply.

Discussion

Or maybe it's just included in a reg-test environment setup?

why use that over commando ?

Want to set up Ride-The-Lightning which requires a rest interface to communicate with the node

Last time I checked you still needed c-lightning-REST to run RTL, it was not clnrest ready.

An undocumented way to test the plugin is to just run the plugin on its own and see if it shows a message

```

$ python src/lightning/plugins/clnrest/clnrest.py

```

It works for me but I had to blow away my whole python environment and start over a couple times before I it worked

https://github.com/ElementsProject/lightning/issues/6994

But isn’t clnrest built into cln now though? That’s what I got from the docs. So I don’t have the python file anywhere other than in the cloned repo

Check the docs here: https://docs.corelightning.org/docs/rest

there are a few other config options.

Also make sure that the python dependencies are installed.

That’s the page I tried to follow but CLN didn’t recognize the clnrest-port option either in the config file or as arguments to the program

I presume you are on the latest CLN release. Still need to try the configs myself.

Yeah, checked out latest release tag and built from source. I’ll take a new stab at it tomorrow, maybe I overlooked something