2.1 KiB
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
: CLightningWalletCLIGHTNING_RPC
: /file/path/lightning-rpc
Spark (c-lightning)
LNBITS_BACKEND_WALLET_CLASS
: SparkWalletSPARK_URL
: http://10.147.17.230:9737/rpcSPARK_TOKEN
: secret_access_key
LND (gRPC)
Using this wallet requires the installation of the lndgrpc
and purerpc
Python packages.
LNBITS_BACKEND_WALLET_CLASS
: LndWalletLND_GRPC_ENDPOINT
: ip_addressLND_GRPC_PORT
: portLND_GRPC_CERT
: /file/path/tls.certLND_GRPC_MACAROON
: /file/path/admin.macaroon
LND (REST)
LNBITS_BACKEND_WALLET_CLASS
: LndRestWalletLND_REST_ENDPOINT
: ip_addressLND_REST_CERT
: /file/path/tls.certLND_GRPC_MACAROON
: /file/path/admin.macaroon
LNbits
LNBITS_BACKEND_WALLET_CLASS
: LNbitsWalletLNBITS_ENDPOINT
: e.g. https://lnbits.comLNBITS_KEY
: lnbitsAdminKey
LNPay
For the invoice listener to work you have a publicly accessible URL in your LNbits and must set up LNPay webhooks pointing to <your LNbits host>/wallet/webhook
with the "Wallet Receive" event and no secret.
LNBITS_BACKEND_WALLET_CLASS
: LNPayWalletLNPAY_API_ENDPOINT
: https://lnpay.co/v1/LNPAY_API_KEY
: sak_apiKeyLNPAY_WALLET_KEY
: waka_apiKey
lntxbot
LNBITS_BACKEND_WALLET_CLASS
: LntxbotWalletLNTXBOT_API_ENDPOINT
: https://lntxbot.bigsun.xyz/LNTXBOT_KEY
: lntxbotAdminApiKey
OpenNode
For the invoice to work you must have a publicly accessible URL in your LNbits. No manual webhook setting is necessary.
LNBITS_BACKEND_WALLET_CLASS
: OpenNodeWalletOPENNODE_API_ENDPOINT
: https://api.opennode.com/OPENNODE_KEY
: opennodeAdminApiKey