RaspiBlitz Documentation
website·Indexed 34 days ago
https://docs.raspiblitz.orgAn open-source DIY platform for running a Bitcoin full node and Lightning Network node (LND and/or Core Lightning) on Raspberry Pi 4 and 5. The documentation covers hardware setup, software installation via SD card images, storage migration, SSH menu management, and Web UI usage.
What's inside RaspiBlitz
- RaspiBlitz is an MIT-licensed open-source project that enables users to run a full Bitcoin node (to verify the blockchain and transactions) and a Lightning Network node (for fast, low-cost transactions) on a Raspberry Pi. It also supports the installation of additional apps and services directly on the node.
Overview of RaspiBlitz storage migration scenarios
Storage migration allows moving RaspiBlitz data and blockchain to a larger drive without reinstalling the node from scratch. This requires RaspiBlitz v1.12 (or higher) and is supported on Raspberry Pi 4 and 5. Supported migration paths include:
- SATA-USB SSD → larger SATA-USB SSD (Pi 4 or Pi 5)
- SATA-USB SSD → larger NVMe (Pi 5)
- NVMe → larger NVMe (Pi 5)
Overview of RaspiBlitz Lightning Node
RaspiBlitz is a do-it-yourself Bitcoin Lightning Node that runs a Bitcoin Fullnode alongside Lightning Network implementations (LND and/or Core Lightning) on a Raspberry Pi. It is designed for decentralized home operation and typically utilizes a 2TB NVMe drive and a dedicated display for monitoring and setup.Interoperability between LND and CLN
LND and CLN nodes are interoperable because both follow the BOLT specification. They can open channels to each other and route payments. On a RaspiBlitz system, both implementations can run in parallel and even maintain channels between each other. However, there are currently no tools to convert a node's database from LND to CLN (or vice versa); channels must be closed to move funds between different implementations.Execute the RaspiBlitz workshop agenda
Follow this structured flow for the workshop session:
- Welcome and Intro (10 min): Introduction to the Lightning Network, RaspiBlitz documentation, and GitHub.
- Assembling: Step-by-step hardware assembly guided by example pictures/slides.
- Basic Setup:
- Ensure laptops are on the same local network as the nodes.
- Guide participants through the WebUI setup for Bitcoin and LND.
- Provide paper/pens for recording passwords and seeds.
- Syncing/Waiting Period (~30 min):
- While LND scans and the blockchain finishes syncing, conduct an educational segment on Bitcoin/Lightning.
- Demo funding and channel creation using a pre-prepared 'clean setup' node.
- Troubleshooting: If sync is slow, check if Tor is blocked by the local network and consider syncing via clearnet. If a node fails to sync in time, shut it down via SSH (
CTRL+Cthenshutdown now); it will resume at the user's home.
Connect external wallet apps to RaspiBlitz
You can connect various wallet applications to your RaspiBlitz node via the SSH menu. Supported apps include:
- Zeus: Android & iOS
- Zap: iOS
- Bitbanana: Android
- Fully Noded: iOS
- Alby: Desktop
Install and use Electrum Rust Server (Electrs)
The Electrum Rust Server (Electrs) allows users to run their own Bitcoin indexer on RaspiBlitz. This enables fast queries for wallet balances and transaction history using any Electrum-protocol compatible wallet (like the Electrum wallet) without relying on third-party servers, thereby preserving privacy. After installation, anELECTRSoption appears in the SSH main menu.Issue TLS certificates using Let's Encrypt (acme.sh)
RaspiBlitz includesacme.sh(installed in/home/admin/.acme.sh/) to create trusted TLS certificates. Certificates are stored on the external hard disk at/mnt/hdd/app-data/letsencrypt. Let's Encrypt does not issue certificates for IP addresses; a DNS domain or FQDN is required.Generate a system debug report
Generate a filtered debug report to share with the community for troubleshooting. Private information like IPs and node IDs are filtered, but manual review is recommended before sharing.# Via SSH terminal (CTRL+C from menu) # Generate report debug # Generate report with a link debug -lFree up disk space by deleting indices
If disk space is low, you can remove specific high-consumption indices via the SSH menu:
- DELETE-ELEC: Deletes the Electrum index.
- DELETE-INDEX: Deletes the Bitcoin Transaction Index (TX-Index).
Hardware requirements for RaspiBlitz
RaspiBlitz is optimized for Raspberry Pi 4 and Raspberry Pi 5. It requires at least 1TB of external storage for operation.Perform emergency recovery of lost CLN channel states
If channel states are lost, you can perform an emergency recovery. This requires restoring thehsm_secret(on-chain wallet keys) first, then uploading and applying anemergency.recoverfile.# 1. Upload the emergency.recover file via scp scp hsm_secret emergency.recover admin@RASPIBLITZ_IP:~/ # 2. Copy it to the bitcoin user directory sudo cp /home/admin/emergency.recover /home/bitcoin/.lightning/bitcoin/ sudo chown bitcoin:bitcoin /home/bitcoin/.lightning/bitcoin/emergency.recover # 3. Run the recovery command lightning-cli emergencyrecover # 4. Verify recovered funds and peers lightning-cli listfunds lightning-cli listpeers # List funding txids to check in a block explorer lightning-cli listfunds | jq -r '.channels[] | .funding_txid'