Files
lnbits/docs/guide/wallets.md
T
2020-10-08 21:51:40 -03:00

1.8 KiB

layout, title, nav_order
layout title nav_order
default Backend wallets 3

Backend wallets

LNbits can run on top of many lightning-network funding sources. Currently there is support for CLightning, LND, LNbits, LNPay, lntxbot and OpenNode, with more being added regularily.

A backend wallet can be configured using the following LNbits environment variables:

CLightning

Using this wallet requires the installation of the pylightning Python package.

  • LNBITS_BACKEND_WALLET_CLASS: CLightningWallet
  • CLIGHTNING_RPC: /file/path/lightning-rpc

Spark (c-lightning)

LND (gRPC)

Using this wallet requires the installation of the lndgrpc and purerpc Python packages.

  • LNBITS_BACKEND_WALLET_CLASS: LndWallet
  • LND_GRPC_ENDPOINT: ip_address
  • LND_GRPC_PORT: port
  • LND_GRPC_CERT: /file/path/tls.cert
  • LND_GRPC_MACAROON: /file/path/admin.macaroon

LND (REST)

  • LNBITS_BACKEND_WALLET_CLASS: LndRestWallet
  • LND_REST_ENDPOINT: ip_address
  • LND_REST_CERT: /file/path/tls.cert
  • LND_GRPC_MACAROON: /file/path/admin.macaroon

LNbits

  • LNBITS_BACKEND_WALLET_CLASS: LNbitsWallet
  • LNBITS_ENDPOINT: e.g. https://lnbits.com
  • LNBITS_KEY: lnbitsAdminKey

LNPay

  • LNBITS_BACKEND_WALLET_CLASS: LNPayWallet
  • LNPAY_API_ENDPOINT: https://lnpay.co/v1/
  • LNPAY_API_KEY: sak_apiKey
  • LNPAY_WALLET_KEY: waka_apiKey

lntxbot

OpenNode

  • LNBITS_BACKEND_WALLET_CLASS: OpenNodeWallet
  • OPENNODE_API_ENDPOINT: https://api.opennode.com/
  • OPENNODE_KEY: opennodeAdminApiKey