Connecting to a lightning node remotely

Remote connection formats summary table

LND
prefix
d
server
d
auth
d
tls
d

lndconnect

lndconnect://

grpc_host:10009

?

macaroon=base64_macaroon

&

cert=base64_cert

BoS

{

"socket": "grpc_host:10009"

,

"macaroon": "base64_macaroon"

,

"cert": "base64_cert"

}

BTCPay

type=lnd-rest

;

;

macaroon=hex_macaroon

;

certthumbprint=hex_cert

C-lightning
prefix
d
server
d
auth
d
tls

Spark Wallet / Sparko

spark_rpc_host

?

access-key=accessKey

BTCPay unix socket

type=clightning

;

server=unix://home/user/.lightning/lightning-rpc

BTCPay TCP

type=clightning

;

server=tcp://tcp_host:27743/

BTCPay Charge

type=clightning

;

;

api-token=myapitoken...

C-lightning REST

rest_host

?

hex_macaroon

Eclair
prefix
d
server
d
auth
d
tls

BTCPay

type=eclair

;

;

password=eclairpassword...

LND

RPC

LNDconnect

Balance of Satoshis

https://github.com/alexbosworth/balanceofsatoshis#saved-nodes

  • stored in

  • with base64 values

  • with path

BTCPayserver

  • LND via the REST proxy:

  • macaroon

  • certthumbprint:

  • optional:

C-lightning

Spark Wallet

https://github.com/shesek/spark-wallet

Sparko

https://github.com/fiatjaf/sparko Currently only works with a CA signed certificate. See: https://github.com/shesek/spark-wallet/blob/master/doc/tls.md#add-as-trusted-certificate-to-android

  • Simply:

    the accessKey has macaroon-like permissions

C-lightning REST (with Zeus)

https://github.com/Ride-The-Lightning/c-lightning-REST/

  • No standard yet, but needs:

  • generate the hex_macaroon:

BTCPayserver

  • c-lightning via TCP or unix domain socket connection:

  • Lightning Charge via HTTPS:

Eclair

BTCPayServer

  • Eclair via HTTPS:

Notes

Last updated