SatsBolt is a unified, Lightning-native monorepo platform engineered to make Bitcoin (sats) payments seamless, fast, and accessible. By combining social tipping mechanics with robust merchant point-of-sale tools, SatsBolt provides public, white-label infrastructure for borderless micro-commerce.
SatsBolt splits transactions into a hybrid engine to optimize performance and reduce fees:
- The Internal Ledger: A high-throughput, ACID-compliant double-entry accounting ledger written in Rust. Transactions between internal platform users settle off-chain instantly with absolute zero fees.
- The Lightning Rail: Powered by the Rust-native Lightning Dev Kit (LDK), used strictly for external network inflows (deposits) and outbound withdrawals.
For structural specs and requirements, see the documentation in docs/:
- 📄 Software Requirements Specification (SRS)
- 📄 System Architecture Documentation
- 📄 Sprint 0 Alignment Notes
- Zero-Fee Internal Ledger: Instant, high-throughput double-entry accounting transactions settled off-chain with absolute zero fees.
- Lightning Network Rail: Inbound deposits and outbound withdrawals integrated with Rust-native LDK (Lightning Dev Kit).
- Asynchronous Off-Ramp: Convert sats to local fiat using a background worker queue with support for external swap providers.
- Dual-Mode Mobile App: Seamless switching between Creator (Tipping) and Merchant (Point of Sale) modes.
- USSD Interface Support: Telephony gateway integration for offline users.
- Backend: Rust, Actix-web, SQLx, PostgreSQL
- Lightning Rail: LDK (Lightning Dev Kit)
- Frontend Client: Flutter, GetX
- Development Tooling: Lightning Polar, Docker, Justfile
satsbolt/
├── backend/ # Rust workspace (API Server, USSD Worker, LDK, Ledger)
├── frontend/ # Mobile client app (Flutter)
├── docker/ # Local database orchestration configurations
├── docs/ # Technical specifications & documentation
└── scripts/ # Script helpers for automation
SatsBolt uses just as a unified build and execution tool. Ensure you have the tool runner installed:
cargo install justCreate your local .env configuration file from the template:
cp .env.example .envYou can run PostgreSQL either natively on your system or via Docker Compose.
- Install PostgreSQL:
- Ubuntu/Debian:
sudo apt install -y postgresql postgresql-contrib - macOS:
brew install postgresql@15
- Ubuntu/Debian:
- Start and enable the service:
sudo systemctl start postgresqlsudo systemctl enable postgresql
- Configure Database & User Credentials:
Access the Postgres console:
Run the SQL commands to create the database, user, and grant privileges:
sudo -u postgres psql
CREATE DATABASE satsbolt_ledger; CREATE USER satsbolt WITH PASSWORD 'secretpassword'; GRANT ALL PRIVILEGES ON DATABASE satsbolt_ledger TO satsbolt; \q
- Apply SQL Schema Migration:
sudo -u postgres psql -d satsbolt_ledger -f backend/migrations/0001_init_schema.sql
- Spin up the database container:
just dev-up
- Apply SQL Schema Migration:
docker exec -i satsbolt-db psql -U satsbolt -d satsbolt_ledger < backend/migrations/0001_init_schema.sql
SatsBolt uses Lightning Polar to manage local Regtest bitcoin nodes and LND/CLN instances.
- Download and run Lightning Polar.
- Create a new network with at least 1
bitcoindnode and 2LND(or CLN) nodes. - Start the network in Polar.
- Update your local
.envconfiguration with the Polar nodes' details:BITCOIN_RPC_URL: Set to the RPC endpoint of thebitcoindnode.BITCOIN_RPC_USER&BITCOIN_RPC_PASS: Set to the RPC credentials shown in Polar.- For LDK engine peer connections, use the peer addresses and ports exposed by your Polar nodes.
Open-source contributions must pass the verification suite. SatsBolt implements unit, integration, and functional testing levels.
Use the unified Justfile recipe:
just test-backendUnder the hood, you can run specific levels:
- Unit Tests: Verify individual library functions.
cargo test --workspace --lib - Integration Tests: Verify ledger database queries.
cargo test --test ledger_integration - Functional Tests: Verify web API route actions.
cargo test --test api_functional
just get-frontend
just test-frontendIf you discover a security vulnerability, please do not open a public issue. Follow the security instructions in CONTRIBUTING.md or contact security coordinators directly.
SatsBolt is released under the MIT License.