2.1 KiB
2.1 KiB
layout | title | nav_order |
---|---|---|
default | Backend wallets | 2 |
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 lnd-grpc
Python package.
LNBITS_BACKEND_WALLET_CLASS
: LndWalletLND_GRPC_ENDPOINT
: ip_addressLND_GRPC_PORT
: portLND_CERT
: /file/path/tls.certLND_ADMIN_MACAROON
: /file/path/admin.macaroonLND_INVOICE_MACAROON
: /file/path/invoice.macaroonLND_READ_MACAROON
: /file/path/read.macaroon
LND (REST)
LNBITS_BACKEND_WALLET_CLASS
: LndRestWalletLND_REST_ENDPOINT
: ip_addressLND_CERT
: /file/path/tls.certLND_ADMIN_MACAROON
: /file/path/admin.macaroonLND_INVOICE_MACAROON
: /file/path/invoice.macaroonLND_READ_MACAROON
: /file/path/read.macaroon
LNbits
LNBITS_BACKEND_WALLET_CLASS
: LNbitsWalletLNBITS_ENDPOINT
: ex. https://lnbits.comLNBITS_ADMIN_KEY
: apiKeyLNBITS_INVOICE_KEY
: apiKey
LNPay
LNBITS_BACKEND_WALLET_CLASS
: LNPayWalletLNPAY_API_ENDPOINT
: ex. https://lnpay.co/v1/LNPAY_API_KEY
: apiKeyLNPAY_ADMIN_KEY
: apiKeyLNPAY_INVOICE_KEY
: apiKeyLNPAY_READ_KEY
: apiKey
lntxbot
LNBITS_BACKEND_WALLET_CLASS
: LntxbotWalletLNTXBOT_API_ENDPOINT
: ex. https://lntxbot.bigsun.xyz/LNTXBOT_ADMIN_KEY
: apiKeyLNTXBOT_INVOICE_KEY
: apiKey
OpenNode
LNBITS_BACKEND_WALLET_CLASS
: OpenNodeWalletOPENNODE_API_ENDPOINT
: ex. https://api.opennode.com/OPENNODE_ADMIN_KEY
: apiKeyOPENNODE_INVOICE_KEY
: apiKey