No description
Find a file
padreug ab19685a2a feat: implement automatic crediting of new accounts with 1 million satoshis
- Modified the user account creation process to automatically credit new
accounts with 1,000,000 satoshis upon creation.
- Updated the `create_user_account_no_ckeck` function to include error
handling and logging for the credit operation.
- Enhanced tests to verify the balance for newly registered users,
ensuring the correct credit amount is applied.
- Documented affected account creation paths and testing instructions in
the new `AUTO_CREDIT_CHANGES.md` file.

fix: pass db connection to update_wallet_balance to prevent SQLite deadlock

The auto-credit feature was causing a deadlock on SQLite because
update_wallet_balance was opening a new database connection while
already inside a transaction. By passing conn=conn, we reuse the
existing connection and avoid the deadlock.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 13:02:14 +01:00
.github test: add boltz fundingsource to regtest (#3677) 2025-12-22 09:23:46 +01:00
docs feat(ui): add frontend support for paying amountless invoices 2026-01-09 20:03:52 +01:00
lnbits feat: implement automatic crediting of new accounts with 1 million satoshis 2026-01-11 13:02:14 +01:00
misc-aio misc docs/helpers 2025-12-29 06:45:51 +01:00
nix nix: Re-enable and fix basic nix flake check for nix package and module (#3425) 2025-10-29 15:58:43 +01:00
tests feat: implement automatic crediting of new accounts with 1 million satoshis 2026-01-11 13:02:14 +01:00
tools feat: use uv instead of poetry for CI, docker and development (#3325) 2025-08-21 16:17:19 +02:00
.dockerignore fix: Boltzclient fundingsource. use a hashed wallet_name (#3673) 2025-12-17 13:57:05 +01:00
.editorconfig add editorconfig config, fix issues (only whitespace changes) (#1958) 2023-09-25 11:06:25 +01:00
.env.example test: add boltz fundingsource to regtest (#3677) 2025-12-22 09:23:46 +01:00
.gitignore chore: ignore .venv dir (#3338) 2025-09-01 15:10:56 +03:00
.pre-commit-config.yaml feat: update npm packages use terser to minify (#3614) 2025-12-04 08:20:01 +01:00
.prettierignore feat: update to Vue3 (#2677) 2024-09-24 11:06:27 +02:00
.prettierrc FIX: prettier formatting (#1395) 2023-01-23 14:23:30 +01:00
AUTO_CREDIT_CHANGES.md feat: implement automatic crediting of new accounts with 1 million satoshis 2026-01-11 13:02:14 +01:00
CUSTOM_FRONTEND_URL_SIMPLE.md Adds custom frontend URL redirect after auth 2025-12-29 06:53:20 +01:00
dockerboltz.sh feat: use uv instead of poetry for CI, docker and development (#3325) 2025-08-21 16:17:19 +02:00
Dockerfile feat: use uv instead of poetry for CI, docker and development (#3325) 2025-08-21 16:17:19 +02:00
Dockerfile.boltz fix: release lnbits-boltz with proper tag (#3674) 2025-12-17 14:36:29 +01:00
extensions.json update nostrrelay to v0.0.2 2026-01-06 23:13:17 +01:00
flake.lock feat: use uv instead of poetry for CI, docker and development (#3325) 2025-08-21 16:17:19 +02:00
flake.nix nix: Re-enable and fix basic nix flake check for nix package and module (#3425) 2025-10-29 15:58:43 +01:00
LICENSE Update LICENSE 2022-01-30 08:27:05 -03:00
lnbits.sh Fix: Glibc error by pegging ubuntu version, appimage include extras like breez_sdk (#3397) 2025-10-10 10:35:25 +01:00
Makefile feat: use uv instead of poetry for CI, docker and development (#3325) 2025-08-21 16:17:19 +02:00
package-lock.json feat: update npm packages use terser to minify (#3614) 2025-12-04 08:20:01 +01:00
package.json feat: update npm packages use terser to minify (#3614) 2025-12-04 08:20:01 +01:00
poetry.lock chore: update to v1.4.0-rc3 (#3672) 2025-12-17 13:57:22 +01:00
pyproject.toml chore: update to version v1.4.0 (#3684) 2025-12-22 14:34:03 +01:00
README.md Update README.md with new TipJar badges and links (#3563) 2025-11-25 09:40:50 +02:00
uv.lock chore: update to version v1.4.0 (#3684) 2025-12-22 14:34:03 +01:00

LNbits

phase: stable license-badge docs-badge PRs: welcome explore: LNbits extensions hardware: LNBitsShop
lnbits_head
tip-hero

LNbits — The most powerful Bitcoin & Lightning toolkit

Run it for yourself, for your community, or as part of a larger stack.

What is LNbits?

LNbits is a lightweight Python server that sits on top of your Lightning funding source. It gives you safe, isolated wallets, a clean API, and an extension system for rapidly adding features - without locking you into a single node implementation. The Inspiration for LNBits came from ideas pioneered by OpenNode and LNPay — both today work as funding sources for LNbits.

What you can do with LNbits

  • Harden app security: Create per-wallet API keys so individual apps never touch your full balance.
  • Extend functionality fast: Install extensions to explore and ship Lightning features with minimal code.
  • Build into your stack: Use the LNbits HTTP API to integrate payments, wallets, and accounting.
  • Cover LNURL flows: Use LNbits as a reliable fallback wallet for LNURL.
  • Demo in minutes: Spin up instant wallets for workshops, proofs-of-concept, and user testing.

Funding sources

LNbits runs on top of most Lightning backends. Choose the one you already operate - or swap later without changing your app architecture.

Learn more

Running LNbits

See the install guide for details on installation and setup.

Get yourself familiar and test on our demo server demo.lnbits.com, or on lnbits.com software as a service, where you can spin up an LNbits instance for 21sats per hr.

LNbits account system

LNbits is packaged with tools to help manage funds, such as a table of transactions, line chart of spending, export to csv. Each wallet also comes with its own API keys, to help partition the exposure of your funding source.

LNbits extension universe

Extend YOUR LNbits to meet YOUR needs.

All non-core features are installed as extensions, reducing your code base and making your LNbits unique to you. Extend your LNbits install in any direction, and even create and share your own extensions.

LNbits API

LNbits has a powerful API, many projects use LNbits to do the heavy lifting for their bitcoin/lightning services.

LNbits node manager

LNbits comes packaged with a light node management UI, to make running your node that much easier.

LNbits across all your devices

As well as working great in a browser, LNbits has native IoS and Android apps as well as a chrome extension. So you can enjoy the same UI across ALL your devices.

Powered by LNbits

LNbits empowers everyone with modular, open-source tools for building Bitcoin-based systems — fast, free, and extendable.

LNbits Shop
Visit LNbits Shop Try myLNbits SaaS Read LNbits News Explore LNbits Extensions tip-hero