getAlby / lightning-browser-extension

The Bitcoin Lightning Browser Extension that brings deep Lightning & Nostr integration to the web. Wallet interface to multiple lightning nodes and key signer for Nostr, Liquid and onchain use.
https://getalby.com/#extension
MIT License
539 stars 194 forks source link

Connecting to local CLN node without proxy #3155

Open sha-265 opened 6 months ago

sha-265 commented 6 months 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 6 months 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 6 months 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 6 months 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 6 months ago

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

reneaaron commented 5 months 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.