getAlby / lightning-browser-extension

The Bitcoin Lightning Browser extension that connects to different wallet interfaces and brings deep lightning integration to the web
https://getalby.com
MIT License
524 stars 192 forks source link

Connecting to local CLN node without proxy #3155

Open sha-265 opened 1 month ago

sha-265 commented 1 month ago

Feature description

I want to be able to connect to my local CLN node

Describe the solution

probably should be connecting via CLNRest or JSON-RPC

Describe alternatives

No response

Additional context

No response

Are you working on this?

None

reneaaron commented 1 month ago

Thanks for your feedback!

Couldn't you also use commando for your local instance? Do you mind to explain why you prefer CLNRest over commando?

sha-265 commented 1 month ago

I don't care using commando, but I don't want to use it over a proxy, but locally. I tried to do so, but it didn't work.

reneaaron commented 1 month ago

There are currently no plans to implement CLNRest, however you could run your own proxy alongside your node if you want to do so.

https://github.com/getAlby/lnsocket-proxy

sha-265 commented 1 month ago

Is there an option to skip this proxy and connect directly to the node's commando?

reneaaron commented 1 month ago

In a browser we can only communicate with websockets (which lnsocket-proxy provides) compared to the native RPC calls commando offers, so I don't think there is a way to do so unfortunately.